Skip to content

Added Clarity to 7.9#1108

Open
harrisonj2-v wants to merge 1 commit into
pearcej:masterfrom
harrisonj2-v:Issue_1095
Open

Added Clarity to 7.9#1108
harrisonj2-v wants to merge 1 commit into
pearcej:masterfrom
harrisonj2-v:Issue_1095

Conversation

@harrisonj2-v

Copy link
Copy Markdown

Description

Updated the explanation of the C++ operator<< function to provide a clearer and more educational description of operator overloading. Added details explaining how returning an ostream reference allows output chaining, why operator<< is implemented as a friend function, and how passing objects by reference avoids unnecessary copying.

Related Issue

Fixes #1095

How Has This Been Tested?

Was tested on localhost
Reviewed by Team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

operator overloading is confusing to students

1 participant