Identify which of the following overloaded operator function-04171
Identify which of the following overloaded operator function's declaration is appropriate for the given call? <br>Rational_number_1 + 2.325 <br>Where Rational_number_1 is an object of user defined class Rational_number.
This multiple choice question (MCQ) is related to the book/course vu cs304 Object Oriented Programming. It can also be found in vu cs304 Mid Term - Quiz No.8.
Identify which of the following overloaded operator function's declaration is appropriate for the given call?
Rational_number_1 + 2.325
Where Rational_number_1 is an object of user defined class Rational_number.
Rational_number_1 + 2.325
Where Rational_number_1 is an object of user defined class Rational_number.
Rational_number operator+( Rational_number & obj);
Rational_number operator+(double& obj);
Rational_number operator+(Rational_number &obj, double& num);
operator+(double& obj)