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?

(A) Rational_number operator+( Rational_number & obj);
(B) Rational_number operator+(double& obj);
(C) Rational_number operator+(Rational_number &obj, double& num);
(D) operator+(double& obj);

Related Posts 👇

  • In a de-queue, (chose the best option):

    (A) Data can be quickly inserted or deleted at any arbitrary location
    (B) Data can be inserted or deleted at any arbitrary location, but the process is relatively slow
    (C) Data can not be quickly inserted or deleted at either end
    (D) Data can be inserted or deleted at either end, but the process is relatively slow

Leave a Reply

Your email address will not be published. Required fields are marked *