class animal:
    def eat(self):
        print('animal will eat')
class dog(animal):
    def eat(self):
        print('dog is eating bone')
class cat(animal):
    def eat(self):
        print('cat is eating fish')
class person:
    def eat(self):
        print('people is eating corn')
def fun(obj):
    obj.eat()
fun(animal)
fun(dog())
fun(cat())
fun(person())