filmov
tv
Part1: regular methods, class methods & static methods (Hindi) | The Learning Setu

Показать описание
Part1 - In this lesson, we will learn about regular methods. In the next part, we will look into class method and static method.
Methods are functions defined inside the body of a class. They are used to define the behaviors of an object. There are 3 types of methods
regular Method - first argument will be an object always. It is used for accessing and modifying the object properties.
class method - first argument will be the class always. We use @classmethod decorator. It is used for changing/adding the class variables
static method - neither object nor class will be the first argument. We use @staticmethod decorator.
Thanks for watching
Methods are functions defined inside the body of a class. They are used to define the behaviors of an object. There are 3 types of methods
regular Method - first argument will be an object always. It is used for accessing and modifying the object properties.
class method - first argument will be the class always. We use @classmethod decorator. It is used for changing/adding the class variables
static method - neither object nor class will be the first argument. We use @staticmethod decorator.
Thanks for watching