sync with Atlas repo
This commit is contained in:
19
interfaces/diamond.py
Normal file
19
interfaces/diamond.py
Normal file
@@ -0,0 +1,19 @@
|
||||
class A:
|
||||
def ping(self):
|
||||
print('ping:', self)
|
||||
|
||||
|
||||
class B(A):
|
||||
def pong(self):
|
||||
print('pong:', self)
|
||||
|
||||
|
||||
class C(A):
|
||||
def pong(self):
|
||||
print('PONG:', self)
|
||||
|
||||
|
||||
class D(B, C):
|
||||
def pingpong(self):
|
||||
super().ping()
|
||||
super().pong()
|
||||
Reference in New Issue
Block a user