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
How a new element can be added or pushed in a stack?
Why is c++ awesome?
What is searching?
what is a reference variable in C++?
What jobs can you get with a c++ certification?
What is the use of main function in c++?
What is stl containers in c++?
What is set in c++?
Explain Memory Allocation in C/C++ ?
Can a constructor return a value?
Explain how to initialize a const data member.
Difference between an inspector and a mutator
Can we get the value of ios format flags?
Explain dangling pointer.
What do you mean by function and operator overloading in c++?