Object Oriented Programming
Object Oriented Programming
You are required to implement a class Matrix whose objects should be able to store a matrix of integers.
This class must provide the implementation of all the member functions whose declaration is given in the
Matrix class. Feel free to include any additional methods that can help you to fulfill this task. Proper error
handling and checking must be applied wherever required in the implementation.
class Matrix
{
private:
//A two dimensional array of integers dynamically allocated based on
//rows and cols
int **data;
int row; //number of rows in matrix
int col; //number of columns matrix
public:
/*It should take input of a Matrix and during input user also must know
at which indexes input is being taken*/
void input ();
};