Vidyalelo
C++ Programming · Q31

Constructors and Destructors in C++

Programming · C++ Programming · question 31

Q31

Which of the following statements about constructor initialization lists in C++ is correct?

A.
They cannot be used in constructors with default arguments
B.
They can only be used in copy constructors
C.
They can only be used for primitive data types
D.
They must be used for initializing all members of a class
Answer

Answer: Option D

Solution

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