Python · Lesson 12.2 · Pro

Methods

Give your objects behaviour: functions that work on their own data.

In this lesson

  1. A method is a function in a class
  2. Methods that change the object
  3. Protect the object's rules
  4. Methods calling methods