Lesson: 5. Objects, Data, and Methods
- Functions: are self-contained chunks of code that perform a specific task. You give a function a name that identifies what it does, and this name is used to “call” the function to perform its task when needed.
- Method: The things that provide functionalities to an object is commonly called a method. A method is simply a function that belongs to an object.