wings.py
class Wings:
def __str__(self):
return "Wings"
def fly(self):
print("Flying /\\o/\\ ")
class ChickenWings:
def __init__(self):
self.price = 100
def __str__(self):
return "ChickenWings @{}".format(self.price)
def fly(self):
print("Can't!! I'm Dead")
Test Code
w1 = Wings()
c1 = ChickenWings()
print(w1)
print(c1)
w1.fly()
c1.fly()
Output
Wings
ChickenWings @100
*Flying /\o/*
Can't!! I'm Dead