25.8.0
This website uses cookies to ensure you get the best experience on our website. Learn more

C++: Overloading Arithmetic & Relational Operators

Gaurav singh Yadav

Skillsoft issued completion badges are earned based on viewing the percentage required or receiving a passing score when assessment is required. 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.

Issued on

December 20, 2024

Expires on

Does not expire