0
Can i have a static constructor and a regular constructor in the same class?
4 Respuestas
+ 2
Although you don't really add the static keyword, constructors already are, and can only be static. Think about it, a constructor is something you call BEFORE having a class instance.
+ 1
Why would you need to initialize a STATIC variable for each instance? I think you should consider making it not static.
0
but you can't initialize static variables that way.
0
yes, you're right. if i really needed to initialize static variables i could use a static method. thanks for the answers.