Question: 4: Create a class called 'Matrix' containing constructor that initializes the number of rows and the number of columns of a new matrix object. The
4: Create a class called 'Matrix' containing constructor that initializes the number of rows and the number of columns of a new matrix object. The Matrix class has the following information : 1. Number of row of matrix 2. Number of colmn of matrix 3. Element of matrix (you can use 2D array)
The matrix class has function for each of the following: 1. Get rhe number of rows 2. Get the number of column 3. Set the element of matrix at given position(i j) 4. Adding two matrices 5. Multiplying twi matrices You can assume that the dimensions are correct for multiplication and addition. (language c++)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
