English
Tamil Nadu Board of Secondary EducationHSC Science Class 12

What is the purpose of the Destructor? - Computer Science

Advertisements
Advertisements

Question

What is the purpose of the Destructor?

Short Note

Solution

Destructor is also a special method that gets executed automatically when an object exit from the scope. It is just the opposite of the constructor. In Python, _del_( ) method is used as the destructor.

shaalaa.com
Constructor and Destructor in Python
  Is there an error in this question or solution?
Chapter 10: Python Classes and objects - Evaluation [Page 187]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 12 TN Board
Chapter 10 Python Classes and objects
Evaluation | Q 5. | Page 187
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×