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 / nishant

Firstly Virtual constructor is really not needed at all.
Explanation:
V-table is something which stores the addresses corrospond
to all virtual function within a class.Now every class
object contains virtual pointer points to base address of
v-table in memory which is being used to resolve the
corrosponding virtual function addresses.

This v-table construction is done when object of the class
has been created,While constructor is an initialization
process in construction of the object and so v-table is not
available during initialization process and hence virtual
constructor is not possible.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use classes in programming?

1001


What is flush c++?

948


Which one is better- macro or function?

1142


When do we run a shell in the unix system? How will you tell which shell you are running?

925


What are vectors used for in c++?

1030


Explain about vectors in c ++?

978


What are the manipulators in c++?

999


How can I improve my c++ skills?

1079


What is the use of 'this' pointer?

1231


Program to check whether a word is a sub-string or not of a string typed

1991


How are virtual functions implemented in c++?

1030


Which operator cannot be overloaded c++?

979


What is meant by forward referencing and when should it be used?

966


What are manipulators used for?

1056


Define a constructor?

1011