Can you call destructor?

No. You never need to explicitly call a destructor (except with placement new ) . A class’s destructor (whether or not you explicitly define one) automagically invokes the destructors for member objects. They are destroyed in the reverse order they appear within the declaration for the class.

Sizin İçin Seçtik  Can destructor be called?

Leave a Reply

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