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
What is difference between c++ and c ++ 14?
Can user-defined object be declared as static data member of another class?
What do you mean by funtion prototype?
What does the ios::ate argument do?
What is object in c++ wikipedia?
Can you overload the operator+ for short integers?
What is scope operator in c++?
Difference between declaration and definition of a variable.
Explain what you mean by a pointer.
Is c++ an oop?
What does return 0 do in c++?
How can you link a c program with a c function?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
What programming language should I learn first?
Which is not a valid keyword a) public b) protected c) guarded