0
What "static" method is for?
5 Réponses
+ 5
Statics method, are class methods that can be access by using the class name, instead of creating a new object.
+ 4
Static keyword means that the variable or method it accompanies is not attached to an instance of the class, and is the same throughout all instances.
Additionally, static members do not require the use of an object to access them, they can simply be accessed by ClassName.MemberName (providing that it's public, of course).
+ 1
I think it's too early for me to learn class and static notions
0
Static is an access modificator, it defines de variable or function declared as static to work only inside the .c file
0
Viceversa the "extern" metod, declare the variable as if its in another file declarated