might look something like this:
1.Test constructor and toString()
1.Test constructor and toString()
2. Test Setters and Getters.
2.Test Setters and Getters
3. Test raiseSalary()
3.Test raiseSalary()
Enter TC(1,2 or 3): 1
Enter TC(1,2 or 3): 2
Enter the Employee id:1
Enter the Employee id:5
Enter the Employee lastName:alan
Enter the Employee lastName:alex
Enter the Employee firstName:smith
Enter the Employee firstName:fegi
Enter the Employee salary:30
OUTPUT:
Enter the Employee salary:50
OUTPUT:
id is:5
Employee[id=1,name=alan smith, salary=30]
firstname is:fegi
lastname is:alex
salary is:50
name is: fegi alex
annual salary is:600
1. Test constructor and toString()
+ 100%
Zoom
Close