I have something like this sample of code:
class A
{
public:
bool ComputeSomething(double &x, double y);
...
};
class B: public A{...}
class C: public A{...}
class D: public B, public C
{
bool FindSomething(const A& a);
...
}
My problem is that in class D the function FindSomethng does not know if A comes from B or C. Is there a way to block A in C so that the methods in C from A to be used just in C and in D to use the methods of A from B? I know this is kind od a stupid question. I need to make this to work just by modifying class C because class B and D are to developed to support such changings...