‎2014 Jul 26 9:33 AM
If all the variables in a method are global variables/class-data/constants and no importing parameter.
What's the difference between it is defined as a static method or a normal one?
‎2014 Jul 26 10:40 AM
Hi Ming Yu,
For this case, we won't find any difference in static method and normal(Instance) method based on variable.
But basic difference in calling the method.
Static Method
To call static method, it is not required to create the object for the class. Also static method won't support polymorphism.
CLASS1=>METHOD1.
Instance Method
To call normal method(Instance), It is required to have the object for the class.
OBJ->METHOD1.
Regards
Rajkumar Narasimman
‎2014 Jul 27 6:45 AM