Multiple choice

How many arguments do destructors take?

  1. Two

  2. One

  3. Infinite

  4. None

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

In C++, destructors are special member functions used to clean up objects. They are defined without parameters and cannot be overloaded, meaning they always take zero arguments.