Ok, having a few inheritence problems.
I have a class CMatrix;
It has a void Print() function and a constructor that takes 3 parameters (rows, cols, fill)
I also have a class CPoint, which uses CMatrix as a base.
When constructed, it takes size and fill, and calls the CMatrix constructor (1, size, fill)
No Problem yet, but how can i call a CPoint object to .Print(), and get it to use the CMatrix Print() Function without doing this:
void CPoint::Print()
{
CMatrix::Print();
}
Is there any better way?
Thanks
