How many types of destructor are there?

There has to be only one Destructor in a class . A Destructor has no return type and no parameters. If we do specify a destructor in class then, the compiler creates a default destructor.

Sizin İçin Seçtik  What are the different types of constructors in C++?

Leave a Reply

Your email address will not be published. Required fields are marked *