Python wielokrotne dziedziczenie
class Base1:
pass
class Base2:
pass
class MultiDerived(Base1, Base2):
pass
SAMER SAEID
class Base1:
pass
class Base2:
pass
class MultiDerived(Base1, Base2):
pass
class Base:
pass
class Derived1(Base):
pass
class Derived2(Derived1):
pass
class a:
def __init__(self):
print("Hello")
class c:
def __init__(self, text):
print(text)
class d(a,c):
def__init__(self,text):
a.__init__(self)
c.__init__(self,text)