java
Box class
Define a parent class Box with the following constraints. [
total 5 marks]
WeightedBox class
Define a child class WeightedBox for Box class, with the
following constraints. [ total 6 marks]
GiftBox class
Define another child class GiftBox for Box class, with the
following constraints. [ total 7 marks]
Shipment class
Define Shipment class to instantiate objects for WeightedBox,
GiftBox. [ total 7 marks]
1. WeightedBox instance values are 12,34,17,4.5 [1 mark]
2. GiftBox instance values are 23,12,34,2.4,green [1 mark]
3. Set new width for GiftBox as 67 [1 mark]
java Box class Define a parent class Box with the following constraints. [ total 5 marks] WeightedBox class Define a chi
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
java Box class Define a parent class Box with the following constraints. [ total 5 marks] WeightedBox class Define a chi
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!