class P1(object):
def foo(self):
print(‘p1-foo’)
class P2(object):
def foo(self):
print(‘p2-foo’)
def bar(self):
print('p2-bar')
class C1 (P1,P2):
pass
class C2 (P1,P2):
def bar(self):
print(‘C2-bar’)
def foo(self):
print('C2-foo')
class D(C1,C2):
pass
>
d=D()
d.foo()
C2-foo