Multiple choice

Which of the following statements is/are correct? A. A destructor does not return any value. B. A destructor accepts any number of parameters.

  1. Both are true.

  2. Both are false.

  3. A is true and B is false.

  4. A is false and B is true.

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

It is true that destructor does not return any value but a destructor does not accept any parameter. Hence, destructor cannot be overloaded.