• +91 9723535972
  • info@interviewmaterial.com

OOP Interview Questions and Answers

Question - What is a destructor?

Answer -

A destructor is a method that is automatically invoked when an object is destroyed. The destructor also recovers the heap space that was allocated to the destroyed object, closes the files and database connections of the object, etc.

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners