Zoom
Kizspy.me
The program output might look something like:
Enter designer: motor
Enter power: 22
1. Test getDesigner()
2. Test setPower()
Enter TC (1 or 2): 1
OUTPUT:
mo22tor
string)
Do not format the result.
Enter designer: motor23
Enter power: 10
1. Test getDesigner()
2. Test setPower()
Enter TC (1 or 2): 2
Enter new power: 5
OUTPUT:
25
Question 2:
(3 marks) Write a class Radio and a class SpecRadio extending from Radio (i.e. Radio is a superclass
and SpecRadio is a subclass) with the following information:
Radio
2 of 2
Paper No: 2
contant String
+ 100%
Where:
Cantanill. Chaina
Close