Google News
logo
CPP - Quiz(MCQ)
Which of the following constructors are provided by the C++ compiler if not defined in a class?
A)
Assignment constructor
B)
Copy constructor
C)
Default constructor
D)
All of the above

Correct Answer :   All of the above


Explanation : If a programmer does not define the above constructors in a class the C++ compiler by default provides these constructors to avoid error on basic operations.

Advertisement