-
Book Overview & Buying
-
Table Of Contents
Mastering Swift 6 - Seventh Edition
By :
In this chapter, we learned how we can use the advanced bitwise AND, OR, XOR, and NOT operators to manipulate the bits of values stored in variables. We also looked at how we can use the left- and right-shift operators to shift bits to the left and right.
We examined the role of overflow operators in modifying the default behavior of arithmetic operations, preventing errors in cases where results exceed the maximum or minimum values for a given type.
We also looked at the concept of adding operator methods to types, enabling us to use the standard operators provided by Swift with our custom types. Additionally, we learned how to create our own custom operators, as well.
In the next chapter, we will look at access controls in Swift.
Unlock this book’s exclusive benefits nowScan this QR code or go to packtpub.com/unlock, then search this book by name. |
... |