Z
zzppallas
I have interface A and interface B decalared as follow:
class A
{
public:
virtual void OnError(std::string reson) = 0;
};
class B
{
public:
virtual void OnError(std::string reson) = 0;
};
And I want to construct a class c inherit both from A and B;
class C: public A, public B
{
public:
void OnError(std::string reson); // for A
void OnError(std::string reson); // for B
};
any one can help me how to implement 2 OnError, one for interface A and
one for Interface B
thanx for ur help
class A
{
public:
virtual void OnError(std::string reson) = 0;
};
class B
{
public:
virtual void OnError(std::string reson) = 0;
};
And I want to construct a class c inherit both from A and B;
class C: public A, public B
{
public:
void OnError(std::string reson); // for A
void OnError(std::string reson); // for B
};
any one can help me how to implement 2 OnError, one for interface A and
one for Interface B
thanx for ur help