Question: Write a class called Worker that encapsulates data about an office worker. The class should store the following things: Employee Number Office Number Name (

Write a class called Worker that encapsulates data about an office worker. The class should store the following things:
Employee Number
Office Number
Name (First and Last)
Birthdate
Total number of hours worked
Total number of overtime hours worked
Your class should also implement the following methods:
_()
This is your constructor. It should not accept any arguments.
get_employee_number()
Returns the employee number
set_employee_number(x)
Changes the employee number
get_office_number()
Returns the office number
set_office_number(x)
If the office number given is less than 100 or greater than 500 return False, otherwise return True
get_name()
Returns the employee's name
 Write a class called Worker that encapsulates data about an office

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!