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

Can you inherit a private class?

1105


How do you explain polymorphism?

1080


What is object in oops?

1074


What is the point of polymorphism?

1035


what type of question are asked in thoughtworks pair programming round ?

2221


What is meant by multiple inheritance?

1266


What is polymorphism and types?

1108


What are the two different types of polymorphism?

1147


Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box

2622


explain sub-type and sub class? atleast u have differ it into 4 points?

2317


Is react oop?

1073


What is pure oop?

1111


What is the difference between inheritance and polymorphism?

1115


What is new keyword in oops?

1045


What is encapsulation example?

1063