Instruction
(employee Class) Create a class called Employee that includes three pieces of information as instance variables-- a first name (type String), a last name(type String) and a monthly salary(type Integer). your class should have a constructor that initializes the three instance variables. Provide a property for each instance variable. the property for the monthly salary should ensure that its value remains positive-- if an attempt is made to assign a negative value, throw an exception. Write an app that demonstrates class Employee's capabilities. Create two Employee objects and display each object's yarly salary. then give each employee a 10% raise and display each employee's yearly salary again.
User_6673 added on 03/24/15 at 06:37 PM (PST):
Funds will be released when assignment is completed. thanks