考虑以下类层次结构:
如何确定在C++中对类X的对象调用foo()时将执行哪个方法?
(我正在寻找算法,而不是任何特定情况.)
c++ multiple-inheritance virtual-inheritance method-resolution-order
c++ ×1
method-resolution-order ×1
multiple-inheritance ×1
virtual-inheritance ×1