class Child(object): def __init__(self): self.other = Other() def implicit(self): self.other.implicit() def override(self): print "CHILD ovrried()" def altered(self): print "CHILD before Other altered()" self.other.altered() print "CHILD after other altered()"
def altered(self): print "CHILD, BEFORE altered()" return Other.altered() print "CHILD,AFTER altered9)"