Multiple choice

Which of the following is not the characteristic of destructor?

  1. Destructor cannot be overloaded.

  2. Destructor can be inherited.

  3. It is not possible to take the address of a destructor.

  4. A destructor never accepts any argument nor does it return any value.

  5. A destructor is invoked implicitly by the compiler when we exit from the program or block.

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

It is not the characteristic of destructor because it cannot be inherited.