Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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.
getemployeenumber
Returns the employee number
setemployeenumberx
Changes the employee number
getofficenumber
Returns the office number
setofficenumberx
If the office number given is less than or greater than return False, otherwise return True
getname
Returns the employee's name
Step 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