The self parameter of function is a reference to the current instance of the class. code example
Example: self in python
class Class(parentClass):
def __init__(self,arg):
self.arg = arg
def function(self):
print(arg)