Multiple choice

Which of the following is/are the true statement?

  1. A constructor has the same name as a class name.

  2. Destructors are used to release the resources.

  3. A constructor can be private in C++.

  4. All of the above.

  5. None of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This is the correct choice.