Section: Inheritance and protocols

Call super

python
python
class Child(Base):
    def __init__(self, name: str):
        super().__init__(name)

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Inheritance and protocols
Subclass
Subclass
OpenIn sheetpythonsame section
Property getter/setter
Property getter/setter
OpenIn sheetpythonsame section
ABC abstract method
ABC abstract method
OpenIn sheetpythonsame section
Basic class
Basic class
Import a module
Import a module
Instance method
Instance method