Path: blob/master/exercices/oop/airport/README.md
306 views
OOP exercice : airports
french
Des interviews d'experts métier ont permis de mettre en évidence les éléments suivants :
Un vol a un aéroport de départ et un aéroport d'arrivée ;
Un vol a une heure de départ et une heure d'arrivée, ainsi qu'une date de départ et une d'arrivée ;
Un vol peut comporter des escales dans des aéroports ;
Les escales interviennent dans un ordre déterminé ;
Une escale a une heure d'arrivée et une heure de départ ;
Chaque aéroport a un nom ;
On peut ouvrir (et fermer) à la réservation chacun des vols.
Pour l'exemple, instancier ce vol : Paris CDG - Helsinki : 20/08/2022 19h43 -> 21/08/2022 8h57 avec 1 escale à Amsterdam du 20/08/2022 22h22 au 20/08/2022 23h23 et 1 escale à Oslo du 21/08/2022 de 5h05 à 6h06
et ajouter une methode au vol pour afficher le voyage complet
english
Interviews with industry experts highlighted the following points:
A flight has an airport of departure and an airport of arrival;
A flight has a departure time and an arrival time, as well as a departure date and an arrival date;
A flight may include stopovers at different airports;
Stopovers occur in a specific order;
A stopover has an arrival time and a departure time;
Each airport has a name;
Each flight can be opened (and closed) for booking.
For example, instantiate this flight: Paris CDG - Helsinki : 20/08/2022 19h43 -> 21/08/2022 8h57 with 1 stopover in Amsterdam from 20/08/2022 22h22 to 20/08/2022 23h23 and 1 stopover in Oslo from 08/21/2022 5h05 to 6h06
and add a method to the flight that displays the complete trip