Byte-Sized-Chunks: Operator Overloading in C++
MP4 | Video: AVC 1280x720 | Audio: AAC 44KHz 2ch | Duration: 2 Hours | 758 MB
Genre: eLearning | Language: English
Assignment, Pre- and Post-Increment, And Streaming Operators Will Make So Much Sense Now!
Operator overloading is a particularly complicated topic - C++ is virtually alone in the ubiquity of overloaded operators. Make sure this doesn't trip you up.
What is operator overloading? Understand internal operators, defined as member functions of a class vs external operators defined as global functions. External operators are commonly friend functions of the class on which they operate.
Internal or External? When would you choose to have an internal operator implementation vs an external operator implementation? Sometimes you don't have a choice!
The += operator
The assignment operator
Pre- and Post-Increment
Streams and the >> and << operators
发布日期: 2016-03-11