Which among the following are valid ways of overloading the operators?
A. Only using friend function
B. Only using member function
C. Either member functions or friend functions can be used
D. Operators can’t be overloaded
Answer: c
Explanation: The operators can be overloaded by using the member function or even the friend functions can be used. This is because both of these can access all the data members of a class.