I'm trying to understand the affect of inheritance order in C++.. I looked online, but I couldn't find a clear and sufficient answer...
So, for the sake of the question, assume there are 2 classes: class B and class C.
Now, define:
class A1 : public B, public C{ ... };
class A2 : public C, public B{ ... };
What is the difference between A1 and A2?
Thanks a lot!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…