Create a class named employee which contains employee name


Problem

Create a class named employee which contains an employee name (String), available to the entire program, and an employee ID number (int) and hourly pay rate (double), available only to the members of the Employee class. Write a constructor which accepts a pay rate and changes it to 6.50, if the value entered is less than that. Write one statement in the main method that creates an object named hourlyEmployee, from the employee class and pass 17.80 as the initial pay rate and one statement that assigns "John Deere" to the name attribute.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Create a class named employee which contains employee name
Reference No:- TGS03216010

Expected delivery within 24 Hours