Vidyalelo
C++ Programming · Q25

Classes and Objects in C++

Programming · C++ Programming · question 25

Q25

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

Answer: Option D

Solution

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