Vidyalelo
C++ Programming · Q10

Classes and Objects in C++

Programming · C++ Programming · question 10

Q10

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
Answer
C.
To create multiple instances of a class
D.
None of the above

Answer: Option B

Solution

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