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
Can we delete this pointer in c++?
Why c++ is so important?
When one must use recursion function? Mention what happens when recursion functions are declared inline?
What are associate containers?
What is ofstream c++?
What are libraries in c++?
Should the member functions which are made public in the base class be hidden?
What are the main features of c++?
Why do we use templates?
When should overload new operator on a global basis or a class basis?
What is a memory leak c++?
What is c++ course?
When you overload member functions, in what ways must they differ?
What is searching? Explain linear and binary search.
Is c++ a dying language?