What is static means? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is static means?

20th May 2017, 6:59 AM
Lham Tsering
Lham Tsering - avatar
3 Answers
+ 2
It means that you needn't instantiate an object for a static method to be called. You call the class method directly.
20th May 2017, 7:19 AM
Álvaro
+ 1
avaro is right.But it is good to add that it is valid for static methods.This is method of class and object is not necessary to instanciate.Next topic are static variables their value is shared among all instanciated objects of a class.
20th May 2017, 8:01 AM
Highman
Highman - avatar
0
other mean?
20th May 2017, 7:22 AM
Lham Tsering
Lham Tsering - avatar