Write down some properties of static member function.



Properties of Static Member Function: Following are some properties of Static Member Function

  1. A static member function can only have access to other static data members and functions declared in the same class.
  2. A static member function can be called using the class name with a scope resolution operator instead of object name.
  3. Global functions and data may be accessed by static member function.
  4. A static member function does not have a this Pointer.
  5. There can not be a static and a non-static version of the same function.
  6. They can not be declared as const or volatile.
  7. A static member function may not be virtual.


Recommended Recommends

Comments

Contact Us