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 for loop and its syntax?
What are the important components of cohesion?
what are the ways in which a constructors can be called?
What is new keyword in oops?
Why multiple inheritance is not possible?
Which method cannot be overridden?
What are properties in oop?
What is the example of polymorphism?
What is the diamond problem in inheritance?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What is a class oop?
What is a class and object?
What is the significance of classes in oop?
State what is encapsulation and friend function?
What is overloading in oops?