Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Why is it so that we can have virtual constructors but we
cannot have virtual destructors?

Answer Posted / rdl

We can have Virtual Destructor. We cannot have virtual
constructor, becoz, if the constructor is virtual, in
polymorphism, there may be a chance for the base class
constructor not to get executed. so the entire class will
not be available.

Is This Answer Correct ?    11 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of polymorphism?

1171


How to improve object oriented design skills?

1063


Why is object oriented programming so hard?

1134


Write a c++ program to display pass and fail for three student using static member function

3461


What is polymorphism programming?

1175


What exactly is polymorphism?

1182


What is encapsulation in oop?

1100


What is an advantage of polymorphism?

1136


What is property in oops?

1131


What is abstraction in oops?

1091


What is encapsulation with example?

1197


What is methods in oop?

1031


What is oops in simple words?

1165


why reinterpret cast is considered dangerous?

2448


Prepare me a program for the animation of train

2532