Множественное наследование
class Person:
def hello(self):
print("I am Human")
class Student(Person):
def hello(self):
print("I am a student")
class Proffessor(Person):
def hello(self):
print("I am a proffessor")
class SomeOne(Proffessor, Student):
pass
s = SomeOne()
s.hello()
# I am a proffessor
12345678910111213141516171819Last updated