friend MatrixClass* operator+ (MatrixClass A, MatrixClass B);
//...
MatrixClass* operator+ (MatrixClass A, MatrixClass B)
{
//...
}
friend MatrixClass* operator+ (MatrixClass& A, MatrixClass& B);
//...
MatrixClass* operator+ (MatrixClass& A, MatrixClass& B)
{
//...
}