Learn basic concept of c , c++ and python programming in regularcodes.com

Spread the post

Destructor in c++

Most important points of destructors in cpp.

1) Parameterized destructor are Not possible.
2) Destructor are cannot be overloaded.
3) There are member function of a class . start with tilde sign and its name should be same as of class name.

4) destructors when run if object scope are over.


5) only single destructor are possible in same class.

Spread the post

Recommended Posts: