Vidyalelo
C++ Programming · Q22

Constructors and Destructors in C++

Programming · C++ Programming · question 22

Q22

What is the purpose of using constructor initialization lists in C++?

A.
To override the default constructor
B.
To create multiple constructors for a class
C.
To initialize class members before the body of the constructor executes
Answer
D.
To define constructors with multiple arguments

Answer: Option C

Solution

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