Python · Lesson 12.2 · Pro
Methods
Give your objects behaviour: functions that work on their own data.
In this lesson
- A method is a function in a class
- Methods that change the object
- Protect the object's rules
- Methods calling methods
Go Pro to read this lesson
Pro unlocks every lesson and practice problem in SQL, Python, pandas and NumPy, with answers and step-by-step explanations.