Is destructor compulsory?

Unless you explicitly declare your own destructor, an implicitly generated destructor will be created for you by the compiler . If a class has no user-declared destructor, a destructor is implicitly declares as defaulted (8.4).

Sizin İçin Seçtik  Why destructor is used when delete is there?

Leave a Reply

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