class Depart:
def show(self):
print("Departments")
class production(Depart):
def show(self):
print("Production department")
print("Highly paid employee's name is Gray and the salary is 80,000")
class marketing(Depart):
def show(self):
print("Marketing department")
print("Highly paid employee's name is Bob and the salary is 180,000")
class finance(Depart):
def show(self):
print("Finance department")
print("Highly paid employee's name is Gee and the salary is 70,000")
class sales(Depart):
def show(self):
print("Sales department")
print("Highly paid employee's name is John and the salary is 100,000")
s=sales()
p=production()
m=marketing()
f=finance()
s.show()
p.show()
m.show()
f.show()
Comments
Leave a comment