+ 3

To declare a varable or method as static, what does it mean ?

2nd Mar 2017, 11:04 AM
kabelo
kabelo - avatar
2 Réponses
+ 2
That variable or method belong to the class as a whole which means that you will not need to create object of class before accessing a static method
2nd Mar 2017, 12:41 PM
Meharban Singh
Meharban Singh - avatar
+ 1
@Karuma is wrong. Bro he is not talking of 'final', he is talking about 'static'
3rd Mar 2017, 4:43 PM
Meharban Singh
Meharban Singh - avatar