My2DClass::My2DClass(const int r, const int c, int mat[3][3]):m_r(r),m_c(c) { matrix = new int*[r]; for (int i = 0; i < r; i++) matrix[i] = new in