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.

Author: Tanmay Chakrabarty

Tanmay Chakrabarty is a former CSE student, currently working as a Senior Software Engineer with 5+ years of experience in the field of Web Application development in PHP+MySQL platform with strong skills in Javascript, JQuery, JQuery UI and CSS. He tries to write notes every week but fails due to heavy loads of duty.

Recommended Recommends


Contact Us