In Swift, you define methods just like how you define functions.
There are two types of methods in Swift: