Vidyalelo
C++ Programming · Q16

Object Oriented Programming in C++

Programming · C++ Programming · question 16

Q16

What is a constructor in C++?

A.
A function used to create multiple instances of a class
B.
A function used to destroy objects
C.
A special member function that initializes objects
Answer
D.
A function that defines the implementation of a class

Answer: Option C

Solution

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