Question 84Asked in BPSC TRE 2.0 (2023) Computer Class 9-10Which of the following constructors is provided by the C++ compiler if not defined in a class?
- ACopy constructor
- BDefault constructor
- CParameterized constructor
- DMore than one of the above
- ENone of the above
Show answerHide answer
Correct answer: (B) Default constructor
Explanation
If a class defines no constructor at all, the compiler supplies a default constructor.