Answer the question
In order to leave comments, you need to log in
How to organize a call to the method of the parent of two classes?
Hello. In Python, calling a parent method is organized like this
class Child(Parent):
def __init__(self):
Parent.__init__(self)
class Child(Parent):
def __init__(self):
super(Child, self).__init__()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question