Methods are just like functions, with two differences:
1. Methods are defined inside a class definition in order to make the relationship between the class and the method explicit.
2. The syntax for invoking a method is different from the syntax for calling a function.
I’ve always been confused with the difference between functions and methods. The above quote has helped clarify that for me.