Examveda
Examveda

What is the purpose of a constructor in C++?

A. To hide the implementation details of a class

B. To create multiple instances of a class

C. To initialize the object's data members

D. To destroy the object

Answer: Option C


Join The Discussion

Related Questions on Classes and Objects in C plus plus