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 an accessor in c++?

1021


How do you remove an element from a set in c++?

1028


What is the outcome of cout< a) 16 b) 17 c) 16.5

972


What do you understand by zombie objects in c++?

1040


What are arrays c++?

1048


What is the use of typedef?

1034


Write a code/algo to find the frequency of each element in an array?

1049


Difference between pointer to constant and constant pointer to a constant. Give example.

1064


Is map ordered c++?

1041


Is c better than c++?

1020


Can a built-in function be recursive?

975


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

1196


What is an overflow error?

1048


What is purpose of abstract class?

1018


Explain the static member function.

1117