All pastes #911416 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-02-20 18:10 UTC
rendered paste body
class animal(object):
    def talk(self):
        raise NotImplementedError()

    def give_food(self):
        self.talk()

class dog(animal):
    def talk(self):
        print "bark"

d = dog()
d.give_food()