#include #include #include // for rand() using namespace std; class Matrix { private: int** element; int rows; int cols; void alloc(); void release(); public: Matrix(int = 0, int = 0); // also default constructor Matrix(const Matrix&); // copy constructor ~Matrix(); Matrix operator+(const Matrix&) const; Matrix& operator=(const Matrix&); friend ostream& operator<<(ostream&, const Matrix&); }; int main() { Matrix A(3,4), B(3,4), C; cout << A << endl; cout << B << endl; cout << C << endl; C = A + B; cout << C << endl; } Matrix::Matrix(int r, int c) : rows(r), cols(c) { cout << "Constructor called for object " << this <