+ 2

Please provide some examples of static methods and class methods

5th Feb 2016, 8:18 PM
Anurag
Anurag - avatar
2 Respuestas
+ 1
it's such math.square(x) static method of class math
28th Jul 2016, 5:36 PM
Sweemyn
+ 1
A static method is used when you want to give users the ability to use your method in the instance, but it doesn't uses any information about the instance. I can't really give you examples of class methods, however, because I am not at this level of programming yet.
30th Aug 2016, 10:11 PM
Amaras A
Amaras A - avatar