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 constructor cannt be declar virtually?
why destructor cannt be overloaded?

Answer Posted / subhashish sen

Constructor can't be virtual,becoz constructor is an entity
which initializes V-table(V-table contains addrress of all
the virtual functions of class).So if we declare constructor
as virtual the who will intialize V-table for this constructor.

Destructor can not be overloaded simply becoz we cant
provide argument to a destructor and also its going to
release the memory when an object goes out of scope.

Is This Answer Correct ?    20 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you explain polymorphism?

1014


Why is oop better than procedural?

1021


What is for loop and its syntax?

1034


What is a superclass in oop?

1109


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

4807


Why is abstraction used?

1028


is there any choice in opting subjects like 4 out of 7

2131


What is encapsulation in ict?

995


What is encapsulation with example?

1023


class type to basic type conversion

2338


What type of loop is a for loop?

1049


What is the point of polymorphism?

995


What is the fundamental idea of oop?

1081


officer say me - i am offered to a smoking , then what can you say

2044


Why do pointers exist?

1046