Ask Question
18 November, 05:28

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);

+3
Answers (1)
  1. 18 November, 05:41
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers