हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा १२

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×