How many destructors can a class have C++?

2) There cannot be more than one destructor in a class . 3) Unlike constructors that can have parameters, destructors do not allow any parameter.

Sizin İçin Seçtik  Can a class have no constructor C++?

Leave a Reply

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