Examveda

What is the purpose of using default arguments in C++ constructors?

A. To allow the constructor to be called without arguments

B. To provide a default value for constructor arguments

C. To specify the order of constructor execution

D. To prevent the use of constructor arguments

Answer: Option B


Join The Discussion

Related Questions on Constructors and Destructors in C plus plus