Question: Write a Python class Employee to manage employee details, including name ( public ) , ID ( private ) , salary ( protected ) and
Write a Python class Employee to manage employee details, including namepublic ID privatesalaryprotected and years worked protected with functionality to apply a bonus of if the employee has worked more than years. Include all getters and setters along with additional function to modify salary based on the years worked and bonus.
Create instances for Employee class to test your code and these instances should be through user input.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
