Types of class methods
Topics: class methods, instance methods, static methods, using class methods as alternative constructors Updated 2020-10-03
Types of methods A class can have three types of methods: instance methods, class methods and static methods.
Instance methods are the most common type of method. They take at least the parameter self as an input. This parameter points towards an instance of the class when the method is called. An instance method can modify both object state (through the self parameter) and class state indirectly (through the self.