What does it mean when you add the static keyword to a method?
public static void doSomething(){ //Well, do something! }
Can you add the
Static variable doesn't link with object of the class. It can be accessed using classname. All object of the class will share static variable.
By making function as static, It will restrict the access of that function within that file.