How do you call a destructor of an object?

Explicit call to destructor is only necessary when object is placed at particular location in memory by using placement new . Destructor should not be called explicitly when the object is dynamically allocated because delete operator automatically calls destructor.23 Ağu 2020

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

Leave a Reply

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