Link to home
Start Free TrialLog in
Avatar of gromul
gromul

asked on

Draw the memory layout of a C++ class with two virtual functions

It's an interview question. Any help is appreciated.

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dbkruger
dbkruger

This is only a possible implementation, though it's extremely common, so I'd avoid saying this is THE layout.
It's conceivable that on some weird architecture they could do something else.

Good luck
JKR  thanks for the link fom wikipedia

i learnt lot abt vtable  !!