I am new to Java.
Since the "main" class has the main() function it it, is this called
before the constructor, or is a constructor totally irrelevant for a
main class, since you never "new" it ?
I am used to C++ whare main exists outside any class.
I have a test "main" class and it appears the constructor is never
called ?
Confused !
TIA
Remove the SPAMBLOCK from my email address to reply.
Since the "main" class has the main() function it it, is this called
before the constructor, or is a constructor totally irrelevant for a
main class, since you never "new" it ?
I am used to C++ whare main exists outside any class.
I have a test "main" class and it appears the constructor is never
called ?
Confused !
TIA
Remove the SPAMBLOCK from my email address to reply.
Comment