Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CODE MUST BE DONE IN PYTHON PLEASE!!! THANKS. Problem 3. HR Matters a) Design and implement in a file p3.py a class hierarchy for employees
CODE MUST BE DONE IN PYTHON PLEASE!!! THANKS.
Problem 3. HR Matters a) Design and implement in a file p3.py a class hierarchy for employees in a startup company. The base class is Employee. This has subclasses Manager, Engineer. Class Manager has a subclass called CEO. Each employee has these: Data attributes: name (string), base salary (float), phone number (string). Make these private attributes (_prefix) Constructor taking and saving as attributes name, phone number, and base salary. (Ensure proper call chain for superclass constructors.) Methods: accessors for the name and the phone number and a method called salary_ total) that returns the total salary, including any extra benefits that subclasses might have. A method (called a mutator) that updates the base salary The str_method to generate a string representing the object. E.g. "Manager("Sophia Problem 3. HR Matters a) Design and implement in a file p3.py a class hierarchy for employees in a startup company. The base class is Employee. This has subclasses Manager, Engineer. Class Manager has a subclass called CEO. Each employee has these: Data attributes: name (string), base salary (float), phone number (string). Make these private attributes (_prefix) Constructor taking and saving as attributes name, phone number, and base salary. (Ensure proper call chain for superclass constructors.) Methods: accessors for the name and the phone number and a method called salary_ total) that returns the total salary, including any extra benefits that subclasses might have. A method (called a mutator) that updates the base salary The str_method to generate a string representing the object. E.g. "Manager("SophiaStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started