ALrite, I need to inherit two classes
1 2 3 4 5 6 7 8 9 10 11
|
class One{
//Body
};
class Two: public One{
//body
};
class Three: public One // and the class Two{
//body
};
|
in the class Three, I need to inherit, both the class one and two.
I've tried putting a comma
class Three: public One, public Two
but it kept giving an warning, any options.
Thanks
Last edited on
could you post your code and warnings?
class One is inaccessible in class Three because of ambiguity.
once again... could you post your code and warnings?
That is the code warning,
class One is inaccessible in class Three because of ambiguity.
a) then if you could post your code
b) remove the :public One of class two and it should work