from Inheritance.Parrot import Parrot


class Penguin:
    def fly(self):
        print("Penguin can't fly")

    def swim(self):
        print("Penguin can swim")

    # common interface


def flying_test(bird):
    bird.fly()
    bird.swim()


# instantiate objects
blu = Parrot()
peggy = Penguin()
# passing the object
flying_test(blu)
flying_test(peggy)
