How do you know that your class needs a virtual destructor?
Answer Posted / nishikant sahu
If programmer intended to act the class as a BASE class
somewhere then it is rule of thumb or good programming that
you have to have declare your constructor virtual.
Is This Answer Correct ? | 3 Yes | 6 No |
Post New Answer View All Answers
What is conditions when using boolean operators?
What is array in c++ pdf?
How many types of classes are there in c++?
What do you mean by enumerated data type?
Difference between a homogeneous and a heterogeneous container
Can recursive program be written in C++?
What is the difference between a declaration and a definition?
What is a literal in c++?
What do you mean by const correctness?
Can a program run without main?
What is boyce codd normal form in c++?
If a function doesn’t return a value, how do you declare the function?
Explain overriding.
How do we implement inheritance in c++?
What is the difference between a type-specific template friend class and a general template friend class?