freelanceprogrammers.org Forum Index » C

here it`s that Another one( this time its c++)


View user's profile Post To page top
jateen_b Posted: Tue Jul 29, 2003 4:17 pm


Joined: 25 Jul 2003

Posts: 5
here it`s that Another one( this time its c++)
Hi
i am sorry if there is any error in sending the
question. I am sending it again.

The question is
Where r virtual tables stored? On
stack, heap or their storage is implementation
dependant?

please send the answer with correct reason.

________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/
Reply with quote
Send private message
View user's profile Post To page top
sflam108 Posted: Tue Jul 29, 2003 7:50 pm


Joined: 25 Jul 2003

Posts: 48
here it`s that Another one( this time its c++)
Virtual table contains function pointers that points to virtual member
functions. Therefore one possible implementation would be the table
itself is stored where the member functions are stored.

Again, implementation wise, each instance of a class contains a hidden
pointer to the class`s vtable.

Unless you`re a compiler designer, it is not really necessary to know
all these implementation details.

HTH
Shyan


> -----Original Message-----
> From: jateen bodkhe [mailto:jateen_b@...]
> Sent: Tuesday, July 29, 2003 06:18
> To: Programmers-Town@yahoogroups.com
> Subject: *(&Programmers-Town&)* here it`s that Another one( this time
its
> c++)
>
> Hi
> i am sorry if there is any error in sending the
> question. I am sending it again.
>
> The question is
> Where r virtual tables stored? On
> stack, heap or their storage is implementation
> dependant?
>
> please send the answer with correct reason.
>
Reply with quote
Send private message
Post new topic Reply to topic
Display posts from previous:   
 

All times are GMT
Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Freelace Website Designer - Customer web design and software building.
Booking Calendar - reservation calendar script
Land Surveying - total station instruments and equipments
China Wholesale - Electronics Products
Character Studio - Tutorials and Help