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
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
Write bites in Turbo c++ Header ("Include") Files.
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
What is command line arguments in C++? What are its uses? Where we have to use this?
How can you create a virtual copy constructor?
What is the real purpose of class – to export data?
Explain the differences between private, public and protected and give examples.
What is a buffer c++?
What is function declaration in c++ with example?
What is abstract keyword in c++?
What is constructor c++?
What is #include cstdlib in c++?
What is input operator in c++?
How to access a variable of the structure?
What are vtable and vptr?