what is the role of static keyword on class member variable
Answers
Answered by
0
Explanation:
Static Function Members
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 ::.
Answered by
0
Answer:
Here's your answer.....
Explanation:
A variable declared static within a module (but outside the body of a function) is accessible by all functions within that module. However, it is not accessible by functions from other modules. static members exist as members of the class rather than as an instance in each object of the class.
Hope it helps you.....please mark me as brainlist....
Similar questions