Solved

Why Are the Extraction and Insertion Operators Always Implemented as Friends

Question 53

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents