|
-
Oct 10th, 2003, 02:58 AM
#1
Thread Starter
Fanatic Member
inherited funcitons
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
sql_lall 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|