Multiple choice

Which of the following special member functions is executed when an object of that class is destroyed?

  1. Copy constructor

  2. Default constructor

  3. Constructor with default arguments

  4. Destructor

  5. Parameterized constructor

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

This is a special member function that is executed when an object of that class is destroyed.