B4J Question is it possible to define the class name in source code?

MarkusR

Well-Known Member
Licensed User
Longtime User
is it possible to define the class name in source code?
i believe now its based on the file name.
 

Cableguy

Expert
Licensed User
Longtime User
is it possible to define the class name in source code?
i believe now its based on the file name.
The class name is defined in the IDE when you create it. If you add an existing class, you can rename it.
When you first run your project, the class will be written to file and the class name is used as file name.
 
Upvote 0

MarkusR

Well-Known Member
Licensed User
Longtime User
ok, that means 2 ore more classes in one file is not possible, true?
 
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Each class can hold more than one "classes"
I have a class that I call "helper" were I have about 15 individual objects and/or methods, some needing initializing, other not. A class is just a container...
 
Upvote 0

MarkusR

Well-Known Member
Licensed User
Longtime User
me thought more about this in one file.

class namea
{
}

class nameb
{
}

class namec
{
}
 
Upvote 0
Top