If a friend overloaded operator have to be changed to member overloaded operator, which operator should be used with the class name?
If a friend overloaded operator have to be changed to member overloaded operator, which operator should be used with the class name? Correct Answer Scope resolution operator
The scope resolution operator can be used followed by the class name. Then the operator keyword with the operator symbol that should be overloaded. This is done to use member function instead of friend function.
মোঃ আরিফুল ইসলাম
Feb 20, 2025