Solved

Which of the Following Is the Syntax to Overload the Operator

Question 1

Multiple Choice

Which of the following is the syntax to overload the operator function operator[] as a member function of a class for constant arrays?


A) const Type& []operator(int index) const;
B) const Type& operator[](int index) const;
C) const Type& operator[](int index) ;
D) const Type [](int index) const;

Correct Answer:

verifed

Verified

Related Questions