2.Create a class Matrix with the following= i) 2x2 integer array ii)default constructor initializing array elements to 0 iii)parameterized constructor iv)method display(0 that displays the matrix elements on the screen
Create a class MatrixAdd that inherits from Matrix and has following members i)default constructor ii)parametrized constructor iii)method add(Matrix obj)that returns the sum of two matrices in a Matix object
Create a class MatrixDemo to test the above classes. Create 2 objects of Matrix, display them on the screen and then find the
View All Comments
| View Tutorial