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

What is Static Pointer?

21st Apr 2020, 8:23 PM
Nitesh Srivastava
Nitesh Srivastava - avatar
1 Answer
0
In the simplest of terms: A static function is a member function of a class that can be called even when an object of the class is not initialized. A static function cannot access any variable of its class except for static variables. The 'this' pointer points to the object that invokes the function.
21st Apr 2020, 9:34 PM
Galstyan
Galstyan - avatar