Computer Science, asked by akashdeepmitra34, 8 months ago

how do we write a destructor name??​

Answers

Answered by adityaaa11610
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