c++ - Inheritance misfit -
i ' m having 3 classes, a, b , c
class { }; class b : public { };
however, c has derived a, , b meantime:
i did:
class c : public a, public b { };
but didn't work!
the way have written currently, class c
deriving a
twice (once directly, , once indirectly b
)
Comments
Post a Comment