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  Bir sınıftaki yapıcı metodun amacı nedir?

Leave a Reply

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