Q. What is the purpose of Destructor methods? (Solved)

1. destructor methods creates instances of the class

2. destructor methods releases memory and resources allocated to objects when they were created

3. destructor methods converts type of objects.

4. destructor methods copies contents of one object to another.

  • b. destructor methods releases memory and resources allocated to objects when they were created
Subscribe Now

Get All Updates & News