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  When would you use a Consumer widget?

Leave a Reply

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