Kizspy. me The program output might look something like:
Enter origin: crow
Enter origin: crow
Enter weight: 2
Enter weight: 1
1. Test getOrigin()
1. Test getOrigin()
2. Test setWeight()
2. Test setWeight()
Enter TC (1 or 2): 1
Enter TC (1 or 2): 2
OUTPUT:2crow
Enter new weight: 2
OUTPUT:5
Question 2:
(3 marks) Write a class Furniture and a class SpecFurniture extending from Furniture (i.e. Furniture is a superclass and SpecFurniture is a subclass) with the following information:
Furniture
Where:
Close
+ 100%
Zoom