Ask Question
23 October, 01:15

Which of the following are valid declarations for an assignment operator for a class named myClass?

a. void friend operator = (myClass& left, const myClass& source);

b. void operator = (myClass& left, const myClass& source);

c. void friend operator = (const myClass& source);

d. void operator = (const myClass& source);

+4
Answers (1)
  1. 23 October, 05:06
    0
    Option D is correct

    Explanation:

    Because there are too many parameters in option B.

    and option A and C are just declaring friend functions.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Which of the following are valid declarations for an assignment operator for a class named myClass? a. void friend operator = (myClass& ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers