When does a destructor gets called?

203. When does a destructor gets called?

  1. When an object gets created
  2. When an object gets destroyed
  3. After calling constructor
  4. None of the above

Answer: B) When an object gets destroyed

Explanation:

A destructor gets called when an object is getting destroyed.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.