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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?