Discussion on virtual inheritance
in multiple inheritance, if a class A derived from two classes B and C which derived from the same based class D, and if the class A want to call a member function which is defined in the base class D, there should be a ambiguity with the function call. So when you derive class B and C from base class D, you should use virtual inheritance to resolve this problem.
Jan 21, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment