Question: Objected Oriented Programming Exception Handling Create an EmployeeException class whose constructor receives a String that consists of an Employees ID and pay rate. Create an
Objected Oriented Programming
Exception Handling
Create an EmployeeException class whose constructor receives a String that consists of an Employees ID and pay rate. Create an Employee class with two fields, IDNum and hourlyWage. The Employee constructor requires values for both fields. Upon construction, throw an EmployeeEception if the hourlyWage is less than 6.00 or over 50.00. Write a test program (containing main method) that establishes at least three employees with hourlyWages that are above, below, and within the allowed range.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
