how do we write a destructor name??
Answers
Answered by
0
Explanation:
A destructor has the same name as the class, preceded by a tilde ( ~ ). For example, the destructor for class String is declared: ~String() . If you do not define a destructor, the compiler will provide a default one; for many classes this is sufficient
Similar questions