+ 1

When we have to use static keyword ?

5th Nov 2019, 1:49 PM
Meetesh
Meetesh - avatar
2 Respostas
+ 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
5th Nov 2019, 2:06 PM
Seb TheS
Seb TheS - avatar
+ 2
Okay, thanks for your answer.
5th Nov 2019, 2:08 PM
Meetesh
Meetesh - avatar