Answer Posted / hrpynux@gmail.com
Virtual destructors in C++ are used to avoid memory leaks especially when your class contains unmanaged code, i.e., contains pointers or object handles to files, databases or other external objects. A destructor can be virtual. ... Now, suppose you create an instance of the Derived class using a Base class pointer.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is data encapsulation in C++?
What is guard code in c++?
What is c++ course?
How can I disable the "echo" feature?
How can an improvement in the quality of software be done by try/catch/throw?
Is eclipse good for c++?
What is an incomplete type in c++?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
Describe linked list using C++ with an example.
What is the full form of dos?
What is object file? How can you access object file?
A mXn matrix is given and rows and column are sorted as shown below.Write a function that search a desired entered no in the matrix .with minimum complexity 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
How the keyword struct is different from the keyword class in c++?
What is the difference between the parameter to a template and the parameter to a function?
What are the data types in c++?