What are the types of destructors?

Destructors cannot be declared const , volatile , const volatile or static . A destructor can be declared virtual or pure virtual . If no user-defined destructor exists for a class and one is needed, the compiler implicitly declares a destructor.

Sizin İçin Seçtik  Can I delete in destructor?

Leave a Reply

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