Why is it so that we can have virtual constructors but we
cannot have virtual destructors?
Answer Posted / sachinmundhra
vptr gets initialize in constructor. So in that case we
cannot have virtual constructor.
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is the full form of oops?
What is the use of oops?
What is polymorphism what is it for and how is it used?
What is object and class in oops?
What are the features of oop?
What is an example of genetic polymorphism?
What is debug class?what is trace class? What differences are between them? With examples.
What is difference between pop and oop?
How do you use inheritance in unity?
What is a class oop?
What is oops concept with example?
What are the 4 main oop principles?
What is polymorphism used for?
What are oops functions?
What is the oops and benefits of oops programming?