+ 1
when to use static method?
when the right time i should use static method? and what happen if I set all of my method to static since I dont need to instatiate class to call it.
1 Resposta
+ 6
Always ask yourself :
"does it make sense to call this method, even if the object has not been constructed yet?"