In C++, the "+" operator is overloaded (as member operator function) in user…
DSSSB 2022
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?
- A.
Matrix operator + (Matrix A, Matrix B)
- B.
Matrix operator + (Matrix B)
- C.
Matrix + operator (Matrix A, Matrix B)
- D.
Void + operator (Matrix B)
Attempted by 853 students.
Sign up free to check your answer
Sign up freeLoading lesson…

