You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
249 B
22 lines
249 B
2 years ago
|
class Base:
|
||
|
def __init__(self, a):
|
||
|
self.x = a
|
||
|
|
||
|
|
||
|
class A(Base):
|
||
|
def __init__(self):
|
||
|
super().__init__(5)
|
||
|
|
||
|
|
||
|
class B(Base):
|
||
|
def __init__(self, x):
|
||
|
super().__init__(x)
|
||
|
|
||
|
|
||
|
class C(A, B):
|
||
|
...
|
||
|
|
||
|
|
||
|
class D(B, A):
|
||
|
...
|