Is it possible/logically correct for Base class to have an association relationship to it's derived classes? For example:
class First_Child;
class Second_Child;
class Base
{
private:
First_Child** ppFirstChild;
protected:
Second_Child** ppSecondChild;
}
class First_Child : public Base
{
// I want First child to be able to access **ppSecondChild**
}
class Second_Child : public Base
{
// I want Second child to NOT be able to access **ppFirstChild**
}
I found nothing on google related to this subject. Please feel free to suggest other takeaways[my objective would be to be able to access those double pointers as mentioned in comments from child classes].