Advertisements
Advertisements
प्रश्न
What is the purpose of the Destructor?
टिप्पणी लिखिए
उत्तर
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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?