Anonymous
public text v1 · immutableclass 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()
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()