There is a standard inheritance procedure:

class Parent: def __init__(self, *args): self._subconstructor() def _subconstructor(self): pass class Child(Parent): def __init__(self, *args): super().__init__(*args) 

Is it possible in this case to override the behavior of the _subconstructor method from the Child class without overriding the __init__ method of the parent class itself?

    1 answer 1

    Can. Describe the method you want to override in the heir.

    enter image description here

    • Thank. But the question has already been resolved. I did not understand why overriding does not work in the child class. It turned out that the letter was missing in the method name. I wanted to delete the question, but since you gave the answer, maybe someone will need it. - mkkik