+ 1
What is static method?
just need that explained
2 Respostas
+ 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.
+ 1
static method is like global. you can call it anywhere in your code, it will work. but non static method you cannot.