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
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