मराठी
महाराष्ट्र राज्य शिक्षण मंडळएचएससी विज्ञान (संगणक विज्ञान) इयत्ता १२ वी

Write any four characteristics of destructor function. - Computer Science 1

Advertisements
Advertisements

प्रश्न

Write any four characteristics of destructor function.

State any four characteristics of Destructor.

लघु उत्तर
Advertisements

उत्तर

  1. The name of a destructor is identical to the class name, but it is written with a tilde (~) symbol before it.
    Example: ~fib(){.... message ....}
  2. A destructor is declared without any return type because it does not return a value.
  3. A destructor does not accept any parameters.
  4. It is usually declared with public access in the class definition.
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×