The _______ function is automatically called when an object is destroyed.
- destructor
- finalizer
- deleter
- remover
In C++, when an object's lifetime ends, its destructor is called automatically. A destructor is a member function with the same name as its class preceded by a tilde (~).
Loading...
Related Quiz
- In C++, _______ functions cannot be virtual.
- What is the difference between break and continue in the context of a loop?
- A function without any parameters is declared with the keyword _______ in the parentheses.
- The _______ smart pointer in C++ does not allow the pointer to be shared among objects.
- What is the purpose of a pure virtual function in C++?