How do you know that your class needs a virtual destructor?
Answer Posted / melos
If the class will be derived from and it will need a virtual
destructor so that the destructor of the derived class will
be invoked if it referenced using the pointer to the base class.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Which sort does c++ use?
What is singleton pattern in c++?
What is the use of ::(scope resolution operator)?
What is a dynamic binding in c++?
Discussion on error handling of C++ .
C is to C++ as 1 is to a) What the heck b) 2 c) 10
What is the iunknown interface?
Why should we use null or zero in a program?
Tell me what are static member functions?
Do inline functions improve performance?
What is dynamic and static typing?
Where and why do I have to put the "template" and "typename" keywords?
Describe private, protected and public – the differences and give examples.
Difference between a copy constructor and an assignment operator.
What is c++ library?