Suggested approach: Operator overloading sounds like a complex topic, but really you can and should boil this answer down as small as you can: it allows us to use the same
+ operator with multiple types, such as integers, strings, doubles, and more. If you want to talk about examples of custom operator overloading, perhaps think about multiplying a
CGPoint or something else that’s easy to use in practice.
Estimated difficulty: Easy
deferkeyword in Swift?
Link copied to your pasteboard.