A class in C++ can have the following
2026
A class in C++ can have the following
- A.
One CONSTRUCTOR and one DESTRUCTOR
- B.
One CONSTRUCTOR and multiple DESTRUCTORS
- C.
Multiple CONSTRUCTORS and one DESTRUCTOR
- D.
Multiple CONSTRUCTORS and multiple DESTRUCTORS
Attempted by 54 students.
Show answer & explanation
Correct answer: C
In C++, a class can have multiple constructors via constructor overloading, but only one destructor. A complete solution is required to explain these class members.