[comp.lang.misc] C++ questions

jhallen@wpi.wpi.edu (Joseph H Allen) (02/24/90)

How does C++ support virtual functions/objects when there is multiple
inheritence?  I.E., I read that you can inherit two classes which are derived
from the same base class into a new class.  If the base class is declared as
'virtual' in the two derived classes then when you inherit these both into a
new class only one instance of the base class will exist. 

How exactly is this done (implementation-wise)?  How do functions written for
the 2 derived classes know where the instance of the base class is in an
instance of one of these derived classes?  (you can use functions made for
these derived classes in the new class which combines them both, yes?)
-- 
            "Come on Duke, lets do those crimes" - Debbie
"Yeah... Yeah, lets go get sushi... and not pay" - Duke