Examveda

What is a constructor in C++?

A. A function used to destroy objects

B. A function used to create objects

C. A function used to access class members

D. A special member function that initializes objects

Answer: Option D


Join The Discussion

Related Questions on Classes and Objects in C plus plus