Examveda

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: Option D


Join The Discussion

Related Questions on Constructors and Destructors in C plus plus