create an implement a simple matrix class called baseMatrix.This will consist of baseMatrix.h and baseMatrix.cpp which willdefine and implement the class respectively. The purpose of thisclass is to provide matrix operations for a single matrix that willbe contained within. The class has the following features based onthis simple UML class diagram:
baseMatrix
-numRows: int
-numCols: int
-matrix: int**
———————-
+setRows(a:int):void
+setCols(a:int):void
+getRows():int
+getCols():int
+createMatrix():void 2
+randomiseMatrix(seed:int,min:int,max:int):void
+getElement(r:int, c:int):int
+sumMatrix():int
+displayMatrix():void
The variables are as follows:
• numRows: the number of rows in the current matrix toconstruct
• numCols: the number of columns in the current matrix toconstruct
• matrix: a 2D integer matrix
The methods have the following behaviour:
• setRows, setCols: Two methods that are used set the rows
PayPal Gateway not configured
PayPal Gateway not configured