Bound method in Python

When you create a class, you usually also create methods. Some methods take arguments:

and there are ones that don’t take any arguments:

There are methods with the “self” argument at the beginning. It doesn’t have to be this particular word, you can use any other word, but the requirement is that it has to be the first argument.

or

Bound methods

The methods with the “self” argument at the beginning are the bound methods.

Let’s try them using the example:

Now, you can create an instance of this class and run the “start” method.

Now, let’s try to create an unbound method.

The unbound method is:

You cannot call this method using a class instance. Instead, you have to run like this: