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 super in oop?
What is polymorphism explain?
Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)
Where is pseudocode used?
What is basic concept of oop?
Write a c++ program to display pass and fail for three student using static member function
What are the benefits of interface?
Can we create object of interface?
can we make game by using c
is there any choice in opting subjects like 4 out of 7
What is the use of oops?
explain sub-type and sub class? atleast u have differ it into 4 points?
What is inheritance in simple words?
What are the two different types of polymorphism?
What is polymorphism and why is it important?