Destructor in a class
Answers
Answered by
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
0
destructor can break your class and disturb your teacher
Similar questions