☑Kizspy.me
3 of 4
Paper No: 1
Zoom
1.Test expandSuitcase
2. Test toString
Enter TC(1 or 2): 1
15.00
1.Test expandSuitcase
2.Test toString
Enter TC(1 or 2): 2
1, MIA, 10.00, 16
Question 2:
(3 marks)
Write a class named Employee and a class named Professor extended from Employee (i.e. Employee is
the super class and Professor is the subclass) with the following information:
Employee
-id:int
+ 100%
Where:
Employee()-default constructor
Close