मराठी
तामिळनाडू बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान इयत्ता १२

What is the purpose of the Destructor? - Computer Science

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

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 12 TN Board
पाठ 10 Python Classes and objects
Evaluation | Q 5. | पृष्ठ १८७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×