Home »
MCQs »
C++ MCQs
If we did not create any constructor in the class, then which of the following constructor is automatically added to the class?
189. If we did not create any constructor in the class, then which of the following constructor is automatically added to the class?
- Copy constructor
- Default constructor
- Parameterized constructor
- None of the above
Answer: B) Default constructor
Explanation:
If we did not create any constructor in the class, then the default constructor is automatically added to the class.