Wednesday, March 30, 2011

What is Static Function in C++?

Declaring a member STATIC function restricts its scope and makes it independent of the individual objects of the class. This feature is useful for member functions as for data members. The static data type variable can be manipulated only by the static member of its class without affecting the rest of the program.


1. This function i not having the this pointer.

2. Object.function() is not used as SYNTAX.

3. If we want to access the static function, Then we go for class_Specifier::function();

No comments:

Post a Comment