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


Please Help Members By Posting Answers For Below Questions

What is destructor in oop?

797


What does and I oop mean in text?

858


What is polymorphism used for?

774


Please send ford technologies placement paper 2 my mail id

1845


How do you define social class?

810


What is inheritance and how many types of inheritance?

823


Where You Can Use Interface in your Project

1620


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1383


What is new keyword in oops?

793


can we make game by using c

3723


How to hide the base class functionality in Inheritance?

859


What are the features of oop?

836


How oops is better than procedural?

835


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2310


what are the different types of qualifier in java?

2021