+ 1
When we have to use static keyword ?
2 Antworten
+ 1
You should use it when you especially want some methods or attributes to not to be accessible by class instances.
Static method ~ Class method
Non-static method ~ Object method
+ 2
Okay, thanks for your answer.