This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: + Vehicule (String, boolean) + isSimilar(v:Vehicle):boolean Class List:-displaySimilars(obj: Vehicle) display all the elements similar to obj.-remove():List returns the list of elements removed based on the condition of the deletion. Bus Station :-addBus(b: Bus) : adds a bus.-removeNotAvailable():List returns the list of vehicles removed that are not available to be used -countSimilarBus(b: Bus): int returns the number of buses that have the same number of seats. 1 List- name: String + List(s: String) + size(): int + insertAtFront(d: Vehicle) + getElement(i:int): Vehicle + remove():int LV BusStation-name: String + BusStation (n1: String, n2: String) + addBus (b: Bus) +removeNotAvaible():List + countSimilarBus( b: Bus): int...
View Full Document
This note was uploaded on 11/28/2011 for the course COMPUTER S 113 taught by Professor Dr.safwanqasem during the Spring '11 term at King Saud University.
- Spring '11
- Java Programming