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

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!