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 the real time example of encapsulation?
When a private constructer is being inherited from one class to another class and when the object is instantiated is the space reserved for this private variable in the memory??
what is the difference between <stdio.h>and "stdio.h"?
What is the point of oop?
There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?
How many human genes are polymorphic?
What is encapsulation in ict?
How do you use inheritance in unity?
WAP to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
How to overload new operator in c++
What is polymorphism oop?
What is the renewal class?