Multiple choice technology programming languages

Destructors can be overloaded.

  1. True

  2. False

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

Destructors cannot be overloaded in C++. A class can have only one destructor, which takes no parameters and has no return type. The destructor's signature is fixed as ~ClassName(), making overloading impossible.