T
tas
class B{
public:
virtual void fun() = 0;
.......
};
class C{
public:
void fun();
};
class A: public B, private C {
};
void A::fun(){
........
}
MSVC 6.0 : " 'A::fun()' is ambiquous could be the 'fun' in base B of
class A or the 'fun' in base C of class A."
But when i wrote "public:void fun();" in class A all was good.
Why is this happening? And how i can redefine 'C::fun()' in class A?
public:
virtual void fun() = 0;
.......
};
class C{
public:
void fun();
};
class A: public B, private C {
};
void A::fun(){
........
}
MSVC 6.0 : " 'A::fun()' is ambiquous could be the 'fun' in base B of
class A or the 'fun' in base C of class A."
But when i wrote "public:void fun();" in class A all was good.
Why is this happening? And how i can redefine 'C::fun()' in class A?