What is the meaning of using static before function declaration?
Answers
Answered by
0
Answer:
Answers. +4. static before a member method or a variable inside the class indicates that the method or the variable belongs to the class and thus can be accessed without creating the object of that class. But remember usual access rules still applies.
Answered by
15
Answer:
Static before a member method or a variable inside the class indicates that the method or the variable belongs to the class and thus can be accessed without creating the object of that class.
Similar questions