Inside of a class, you can define functions, akin to those that we have defined outside of functions.

Functions declared inside of a class are "member" functions, to be called on instances of the class. You do that by using dot notation, where the function call is prefixed by the object on which you are calling it and a ..

You can learn more about this in:
Run Edit