Vidyalelo
C++ Programming · Q19

Constructors and Destructors in C++

Programming · C++ Programming · question 19

Q19

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

A.
To hide the implementation details of a class
B.
To initialize objects of a class
C.
To create a single copy of the member shared by all objects
Answer
D.
To create multiple instances of a class

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board