Can I delete in destructor?

Marking a destructor as deleted will make it impossible to destroy the object . It doesn’t matter if it’s on the stack or on the heap. All destruction of an object (whether automatic by it going out of scope, or by doing delete on it) calls the destructor.

Sizin İçin Seçtik  What is parameterized constructor example?

Leave a Reply

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