Why are the extraction and insertion operators always implemented as friends of the class rather than as members of the class?
A) Because the first parameter must be the stream object.
B) They don't, they could be members
C) Because they return a reference
D) Because the stream is passed by reference.
Correct Answer:
Verified
Q46: If obj1 and obj2 are both objects
Q47: Which of the following are not correct?
A)
Q48: Which of the following statements are true?
A)
Q49: Which of the following are valid declarations
Q50: The copy constructor for a class is
Q51: Which of the following operators can not
Q52: Given the following class and array declaration,
Q54: Which of the following function declarations would
Q55: What happens when you define a class
Q56: When a dynamic array with a class
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents