AI engineering glossary · Python advanced

What is instance method?

Instance method: The ordinary kind of method in a class, whose first parameter receives the specific object it is called on. It can read and change that object's data and the class's shared data.

Level: beginnerTopic: Python advanced

Instance method: an example

def area(self): return self.w * self.h uses this rectangle's own width and height.

Related terms

More Python advanced terms

Where you learn it

Instance method is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.