Enter id:1
Enter id:1
Enter name:trung
Enter name:trung
Enter salary:1000
Enter id:1
Enter name:trung
Enter salary:1000
1.Test getNameLength()
Enter salary:8192.1112
1.Test getNameLength()
2.Test getNetSalary()
1.Test getNameLength()
2.Test getNetSalary()
3.Test toString()
2.Test getNetSalary()
3.Test toString()
3.Test toString()
Enter TC(1/2/3):2
Enter TC(1/2/3):3
Enter TC(1/2/3):1
OUTPUT:5
OUTPUT:900.00
OUTPUT:1, trung, 8192.11
Question 2:
(3 marks)
Write an abstract class named Worker and a class named Professor extended from Worker (i.e. Worker is a super class and Professor is a subclass) with the following information:
Zoom
+ 90%
Close