Hi all,
I am taking a Java Course in Michigan to get into the flow of things , but i am completely stuck on one of the Labs.
Here is what the Lab Asks for -
Create a class called 'Employee' that includes three pieces of information as instance variaveles -- a first name (type String), a last name (type String) and a monthly salary (double). Your class should have a constructor that initializes the three instance variabvles. Provide a set and a get method for each instance variable. If the monthly slaary is not prositive, set it to 0.0. Write a test application named EmployeeTest that demonstrates class Employee's capabilitis. Create two Employee objects and display each object's yearly salary. Then give each Employee a 10% raise and display each Employee's yearly salary again.
I AM SOOOO LOSTTTT in this.
please if you can't give me the 'answer' can you maybe break it down for me? Im not quite sure how to even begin this....
Thanks SOOO much in advance
I am taking a Java Course in Michigan to get into the flow of things , but i am completely stuck on one of the Labs.
Here is what the Lab Asks for -
Create a class called 'Employee' that includes three pieces of information as instance variaveles -- a first name (type String), a last name (type String) and a monthly salary (double). Your class should have a constructor that initializes the three instance variabvles. Provide a set and a get method for each instance variable. If the monthly slaary is not prositive, set it to 0.0. Write a test application named EmployeeTest that demonstrates class Employee's capabilitis. Create two Employee objects and display each object's yearly salary. Then give each Employee a 10% raise and display each Employee's yearly salary again.
I AM SOOOO LOSTTTT in this.
please if you can't give me the 'answer' can you maybe break it down for me? Im not quite sure how to even begin this....
Thanks SOOO much in advance
Comment