In C++, the "+" operator is overloaded (as member operator function) in user…

In C++, the "+" operator is overloaded (as member operator function) in user defined class Matrix that adds two matrices and returns resultant matrix.

Which of the following is a signature of this operator function?

  1. A.

    Matrix operator + (Matrix A, Matrix B)

  2. B.

    Matrix operator + (Matrix B)

  3. C.

    Matrix + operator (Matrix A, Matrix B)

  4. D.

    Void + operator (Matrix B)

Attempted by 41 students.

Sign up free to check your answer

Sign up free

Explore the full course: Uppsc Computer Operator Grade B

Loading lesson…