When a destructor is called in C++ Mcq?

2. When a destructor is called? Explanation: The destructor is called just before the object go out of scope or just before its life ends . This is done to ensure that all the resources reserved for the object are used and at last, are made free for others.

Sizin İçin Seçtik  KYC güvenilir mi?

Leave a Reply

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