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 a base class?
Can you sort a set c++?
Is swift faster than go?
What is c++ and its features?
How to allocate memory dynamically for a reference?
What are the 3 levels of programming languages?
What is flag in computer?
Do you know the use of vtable?
What is the first name of c++?
what are Access specifiers in C++ class? What are the types?
What is iterator in c++?
What is difference between array and vector in c++?
Explain the concept of copy constructor?
What are the four partitions in which c++ compiler divides the ram?
what is a reference variable in C++?