Examveda

What is the purpose of the static member variable in C++?

A. To initialize objects of a class

B. To define objects within a class

C. To release resources acquired by the object

D. To maintain common data for all objects

Answer: Option D


Join The Discussion

Related Questions on Classes and Objects in C plus plus