Why is it so that we can have virtual constructors but we
cannot have virtual destructors?
Answers were Sorted based on User's Feedback
Answer / sachinmundhra
vptr gets initialize in constructor. So in that case we
cannot have virtual constructor.
Is This Answer Correct ? | 5 Yes | 0 No |
What is encapsulation with real life example?
how do you handle yourself when you feel the wald is aganist you
Can we define a class within the interface?
Differences between inline functions and non-inline functions?
Please send ford technologies placement paper 2 my mail id
what is a virtual class?
5 Answers Cap Gemini, IBM, Infosys, Trinity Technologies,
What are classes oop?
What is the difference between declaration and definition?
Is react oop?
Base class has two public data members. How can i derive a new class with one datamember as public and another data member as private?.
1. Define a class.
What is class and object with example?