B4J Question Can I Use New() Instead of Initialize for Standard Classes?

cklester

Well-Known Member
Licensed User
Can I use any name for the initialization sub of a standard class, or does Initialize have to exist?

B4X:
dim myBook as Book
myBook.Initialize("Title","Author",ISBN_Number)

-or-

B4X:
dim myBook as Book
myBook.New("Title","Author",ISBN_Number)

-best?-

B4X:
dim myBook as Book = Book.New("Title","Author",ISBN_Number)
 
Top