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
Is oops and c++ same?
Which operations are permitted on pointers?
What is private public protected in c++?
What do you understand by zombie objects in c++?
What c++ library is string in?
What is the use of namespace std in C++?
which of the following is not an secondary constant a) array b) real c) union
What are the differences between new and malloc?
What are libraries in c++?
What is istream and ostream in c++?
How can you quickly find the number of elements stored in a static array?
Why are pointers not used in c++?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort
In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that