Expand|Select|Wrap|Line Numbers
- class Matrix1
- {
- Protected:
- int ** data;
- int row,col;
- Public:
- };
- Class Matrix2 : Public Matrix
- {
- Public:
- Matrix2()
- {
- }
- Matrix2 (int a, int b):Matrix1(a,b)
- {
- }
- void resize()
- {
- //?????
- }
- };
- // can we do this in our driver/main file(function) i.e.
- Matrix2 m1(3,4);
- Matrix2 m2(3,4);
- Matrix m=m1+m2;
- // is this legal ? if yes, then how will it work ?