Let's create a coffee instance
using Coffee.
We want to do something with
the coffee like drink or stir.
We need to add methods
to the Coffee class,
so that a coffee instance
could use those methods.
Classes are used to make instances.
In order for instances to do something,
the class needs to have those methods.
Once again note that a method always starts with def
and the method ends with end
.
In the class Coffee
we have defined two methods drink
and stir
.