Computer Science, asked by sandeepkaurkashyap0, 4 months ago

program explanation of static member function In c++?​

Answers

Answered by rossyjohn
1

Answer:

By declaring a function member as static, you make it independent of any particular object of the class. A static member function can be called even if no objects of the class exist and the static functions are accessed using only the class name and the scope resolution operator ::.

Explanation:

Answered by sweetgirl4721
2

A static member function is a special member function, which is used to access only static data members, any other normal data member cannot be accessed through static member function. Just like static data member, static member function is also a class function; it is not associated with any class object.

Similar questions