C++: Overloading Arithmetic & Relational Operators
C++
| Expert
- 13 videos | 1h 45m 49s
- Includes Assessment
- Earns a Badge
Some of the most commonly overloaded operators include binary arithmetic operators, used in operations such as a + b; compound assignment operat+B30ors of the form a+= b; and the prefix and postfix operators of the form a++. In this course, discover how to overload binary arithmetic operators appropriately, so that they support correct semantics in chaining. Learn how to overload compound assignment operators, such as +=. Explore how the C++ compiler differentiates between the pre and post increment operators and how these operators work in various edge cases. When you complete this course, you will be able to confidently leverage std_rel_ops by overloading relational operators.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseUse std::rel_ops and implement comparison operatorsReuse code by invoking operators from other operatorsUse the std::rel_ops namespace to have c++ generate operator overloadsOverload the + operatorUse the overloaded + operatorRecognize requirements for + operator overloads
-
Perform operator overloading of the += operatorUse the += operator and attempt to return a value typeRecognize requirements for += operator overloadsOverload the pre and post increment operatorsUse an overloaded ++ operatorSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 3s
-
7m 49s
-
8m 51s
-
11m 24s
-
9m 2s
-
5m 39s
-
11m 20s
-
8m 46s
-
8m 8s
-
9m 11s
-
9m 38s
-
10m 7s
-
3m 53s
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.