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...

How to construct virtual constructor

Answer Posted / shakti singh khinchi

Virtual constructors are not used in any case in c++, bcz
the construction order in c++ should always remains from
base to derived , no one can changed their construction
order, so no need to declare constructor as virtual. But if
anyone wants to make it virtual then it is possible to make
a constructor virtual but it is against the OOPs.

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?

1151


what does the following statement mean? int (*a)[4]

1137


What is a container class? What are the types of container classes in c++?

1363


How do I get good at c++ programming?

1247


What is a breakpoint?

1075


What is a constant? Explain with an example.

1080


Refer to a name of class or function that is defined within a namespace?

1156


What is c++ map?

1247


What is the v-ptr?

1214


Do we have to use initialization list in spite of the assignment in constructors?

1051


How much maximum can you allocate in a single call to malloc()?

1153


What is the basic structure of a c++ program?

1197


What happens when the extern "c" char func (char*,waste) executes?

1128


What is the use of string in c++?

1078


Explain the differences between list x; & list x();.

1060