मराठी

What is the purpose of the Destructor?

Advertisements

प्रश्न

What is the purpose of the Destructor?

टीपा लिहा
Advertisements

उत्तर

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
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 10: Python Classes and objects - Evaluation [पृष्ठ १८७]
Advertisements
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×