class Departments:
def disp(self):
print("Departments")
class production(Departments):
def disp(self):
print("production department")
class marketing(Departments):
def disp(self):
print("marketing department")
class finance(Departments):
def disp(self):
print("finance department")
class sales(Departments):
def disp(self):
print("sales department")
s=sales()
s.disp()
Comments
Leave a comment