Quark’s Outlines: Python User-Defined Methods

Overview, Historical Timeline, Problems & Solutions

An Overview of Python User-Defined Methods

What is a Python user-defined method?

When you define a function inside a class, Python does not treat it as just a function. When you call it from an instance, Python changes it into a method. This method knows which object it was called from. It adds that object as the first argument when the function runs.