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

Explain rtti.

1024


What do the header files usually contains?

1000


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

998


What are the differences between the function prototype and the function defi-nition?

1044


What is iterator in c++?

1056


What are the benefits of oop in c++?

1123


If dog is a friend of boy and boy is a friend of house, is dog a friend of house?

949


What is the difference between reference and pointer?

1097


Why do we learn c++?

906


What does count ++ do in c++?

1156


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

1115


What do you mean by delegate? Can a user retain delegates?

883


How would you use the functions memcpy(), memset(), memmove()?

1033


What is a loop? What are different types of loops in c++?

1059


What is the difference between the functions rand(), random(), srand() and randomize()?

1199