This preview shows page 1. Sign up to view the full content.
Unformatted text preview: children and all pieces of luggage in that airplane. While you are implementing your program, consider the following: -Protect any method that is not intended to be overridden, from being overridden by subclasses. -Protect any concrete class from being inherited. Hint: Represent an airplane as a collection (array) of Chargeable Objects. Part of the main… chargeables= new Child("Ahmed Ali",45.5); chargeables= new Adult("Khalid Nasser",86.4); chargeables= new Child("Noha Ameen",62); chargeables= new Luggage(324,35.5); chargeables= new Adult("Salem Saeed",94.25);...
View Full Document
- Spring '11
- Java Programming