English, asked by ddevi, 1 year ago

Destructor in a class

Answers

Answered by mavas247
0
Destructor" functions are the inverse of constructor functions. They are called when objects are destroyed (deallocated). Designate a function as a class's destructor by preceding the class name with a tilde ( ~ ). For example, the destructor for class String is declared: ~String() 
Answered by Piyush8986
0
destructor can break your class and disturb your teacher
Similar questions