Question: Exercise 06: Create one Java class other than main class. New class must contain following 1.Class name Employee 2.Class must have 4 fields (id, first
Exercise 06: Create one Java class other than main class. New class must contain following 1.Class name Employee 2.Class must have 4 fields (id, first name, last name and monthly_salary) 3.Must have constructor 4.Methods to get each field values 5.Methods to set each field values 6.Method to get Annual salary 7.Method to calculate annual increase in salary by specifying the percentage. 8.Method to display Employee details. By Creating object for the above class(Employee), show all the properties.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
