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

What is virtual constructor paradigm?

Answer Posted / subhashish sen

Hi Priyanka Kokil,

What ever u have answered its not 100% correct..As we know
for every virtual function in a class one VTABLE is created
internally and constuctor is an entity who intializes this
VTABLE for all virtual functions of a class.For example if
we have a base class and a derived class derived from
it,then 2 VTABLE will be created one for base and one for
derived class.So if you make constructor as virtual then
who will create VTABLE for this constructor.Thats why
constructor can never be virtual.

Thanks!!!!!If u have ny suggession plz reply..

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between cin.read() and cin.getline()?

1030


Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?

1036


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

956


You run a shell on unix system. How would you tell which shell are you running?

1136


What do you mean by funtion prototype?

1030


Explain container class.

1214


What is class syntax c++?

1111


Do the parentheses after the type name make a difference with new?

1051


Do vectors start at 0 c++?

1001


How much do coding jobs pay?

981


How does a C++ structure differ from a C++ class?

1092


Why is c++ called oops?

1106


Can we distribute function templates and class templates in object libraries?

1046


What is the use of setprecision in c++?

977


When is dynamic checking necessary?

1069