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 i oops concept, how many languages supports oops concept?
What is oops in programming?
Write pseudo code for push in a stack?
difference between static and non-static variables?
What is the difference between procedural programming and oops?
What is difference between data abstraction and encapsulation?
What is ambiguity in inheritance?
Explain the concept of abstracion and encapsulation with one example. What is the difference between them?
What is encapsulation oop?
What is overriding in oops?
What is purpose of inheritance?
How do you define a class in oop?