December 2016
Beginner
800 pages
21h 23m
English
In addition to encapsulating data and methods, classes can also encapsulate operators that make it easy to operate on instances of this class. You can use these operators to perform operations such as assignment or addition on class objects similar to those on integers that you saw in Lesson 5, “Working with Expressions, Statements, and Operators.” Just like functions, operators can also be overloaded.
In this lesson, you learn:
Using the keyword operator
Unary and binary operators
Conversion ...
Read now
Unlock full access