Suppose obj1 and obj2 are two objects of a user defined class A. An + operator is overloaded to add obj1 and obj2 using the function call obj1+obj2. Identify the correct function prototype against the given call?

(A) A operator + ( A &obj);
(B) int + operator();
(C) int operator (plus) ();
(D) A operator(A &obj3);

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 *