Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

image text in transcribed

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("Sophia

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions

Question

explain the need for human resource strategies in organisations

Answered: 1 week ago

Question

describe the stages involved in human resource planning

Answered: 1 week ago