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

Write down the importance of the destructor. - Computer Science

Advertisements
Advertisements

प्रश्न

Write down the importance of the destructor.

टीपा लिहा

उत्तर

An object that is existing must be scraped off when it is o more needed. The task of scrapping off an object is carried out by a destructor. A destructor deinitializes an object and deallocates all allocated resources. Properties of destructor:

  • Destructor functions are invoked automatically when the objects are destroyed.
  • There can be only one destructor for a class, which means the destructor can’t be overloaded.
  • No argument can be provided to a destructor, neither does it returns any value.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 14: Classes and objects - Evaluation - Section - B [पृष्ठ २४७]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
पाठ 14 Classes and objects
Evaluation - Section - B | Q 5. | पृष्ठ २४७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×