C
coltrane
through trial and error I found out that the order of constructing base
classes is altered if one of the base classes is a virtual base class.
with
class A : public B, public C{
};
the construction order is
B C A
where
class A : public B, public virtual C{
};
the construction order is
C B A
what is the reason for this?
thanks for the help
john
classes is altered if one of the base classes is a virtual base class.
with
class A : public B, public C{
};
the construction order is
B C A
where
class A : public B, public virtual C{
};
the construction order is
C B A
what is the reason for this?
thanks for the help
john