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:

Verified
Correct Answer:
Verified
Q7: In C++, >> is used as a
Q9: To overload the pre-increment (++) operator for
Q9: Which of the following is the syntax
Q10: The general syntax to overload the assignment
Q11: A class template is called a(n)_ type
Q16: Which of the following is the general
Q17: The function that overloads the _ operator
Q26: Using a class template, you can write
Q31: The return type of the function to
Q37: Operators can be overloaded either for objects