Multiple choice

Which of the following is a special member function that is automatically called whenever an object of the class is destroyed?

  1. Constructor

  2. Destructor

  3. Delete operator

  4. Friend

  5. Member

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

Destructor is a special member function that is automatically called whenever an object of the class is destroyed.