Wednesday, August 21, 2013

Write down some properties of static member function.

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


          (i)          A static member function can only have access to other static data members and functions declared in the same class.
          (ii)        A static member function can be called using the class name with a scope resolution operator instead of object name.
          (iii)      Global functions and data may be accessed by static member function.
          (iv)      A static member function does not have a this Pointer.
          (v)        There can not be a static and a non-static version of the same function.
          (vi)      They can not be declared as const or volatile.
          (vii)    A static member function may not be virtual.


2 comments:

Leave your valuable thoughts before leaving..