Answer to Question #242481 in Python for Gopi

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.
1
Expert's answer
2021-09-26T18:51:15-0400
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()

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS