class Class1( object ) :
def method1( self ) : return 'm1'
c1 = Class1( )
print ( c1, c1.method1 ( ) )
class Class3( Class1) :
def method2( self ) : return 'm2'
c3 = Class3( )
print ( c3, c3.method1 ( ) )
print ( c3, c3.method2 ( ) )
class Class2( object ) :
def method1( self ) : return 'm1'
def method2( self ) : return 'm2'
c2 = Class2( )
print ( c2, c2.method1 ( ) )
print ( c2, c2.method2 ( ) )
Y2xhc3MgQ2xhc3MxKG9iamVjdCk6CiAgICBkZWYgbWV0aG9kMShzZWxmKTogcmV0dXJuICdtMScKYzEgPSBDbGFzczEoKQpwcmludChjMSwgYzEubWV0aG9kMSgpKQoKY2xhc3MgQ2xhc3MzKENsYXNzMSk6CiAgICBkZWYgbWV0aG9kMihzZWxmKTogcmV0dXJuICdtMicKYzMgPSBDbGFzczMoKQpwcmludChjMywgYzMubWV0aG9kMSgpKQpwcmludChjMywgYzMubWV0aG9kMigpKQoKY2xhc3MgQ2xhc3MyKG9iamVjdCk6CiAgICBkZWYgbWV0aG9kMShzZWxmKTogcmV0dXJuICdtMScKICAgIGRlZiBtZXRob2QyKHNlbGYpOiByZXR1cm4gJ20yJwpjMiA9IENsYXNzMigpCnByaW50KGMyLCBjMi5tZXRob2QxKCkpCnByaW50KGMyLCBjMi5tZXRob2QyKCkpCg==