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
- Spring '11
- Java Programming, #, Automobile, Bus Station