+ 1

What is static method?

just need that explained

23rd Dec 2016, 8:08 AM
cleophas kubasu
cleophas kubasu - avatar
2 Réponses
+ 2
A static function, unlike a regular (instance) function, is not associated with an instance of the class. A static class is a class which can only contain static members, and therefore cannot be instantiated.
3rd Jan 2017, 2:09 PM
jérôme pascaud
jérôme pascaud - avatar
+ 1
static method is like global. you can call it anywhere in your code, it will work. but non static method you cannot.
23rd Dec 2016, 9:24 AM
cat
cat - avatar