Examveda
Examveda

What is the purpose of the 'static' keyword in C++ class members?

A. To initialize objects of a class

B. To create a single copy of the member shared by all objects

C. To create multiple instances of a class

D. None of the above

Answer: Option B


Join The Discussion

Related Questions on Classes and Objects in C plus plus