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 does it mean to declare a destructor as static?
What are the types of array in c++?
Is there a sort function in c++?
What are the advantages of pointers?
What should main() return in c and c++?
How much is c++ certification?
What is scope in c++ with example?
Do class declarations end with a semicolon?
Is c++ a high level language?
Can you write a function similar to printf()?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
Do you know the use of vtable?
What is the default width for ouputting a long integer using the insertion operator?
What does ctime() do?