Solved

Why Are the Extraction and Insertion Operators Always Implemented as Friends

Question 11

Multiple Choice

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions