Question #242481

Suppose there is XYZ Company and there are different departments like production,
marketing, finance, sales etc. Manager of the company want to know about the detail of the employees who are highly paid in each of the department. Write a program using the concept of
classes to implement the same.

Expert's answer

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()
LATEST TUTORIALS
APPROVED BY CLIENTS