I have 2 classes like this:
class Parent
{
public:
void divide( B* element);
protected:
virtual void divide(A* bd);
}
class Child : public Parent
{
protected:
virtual void divide(A* bd);
}
And I have code which calls this:
Child c;
c.divide(new B());
Why the above code can't compile? Why Child does not inherit 'divide(
B* element);' from Parent?
Thank you.