Classes:
1. Passenger
2. Airport
3. Flight
Attributes:
Passenger:
- name: string
- passport_number: string
- phone_number: string
Airport:
- code: string
- name: string
- location: string
Flight:
- number: string
- destination: string
- departure_time: string
Multiplicity:
- Passenger can have multiple flights booked from the Airport
- Airport can have multiple flights scheduled
- Flight can have one Passenger booked and one Airport as the departure point
A passenger at the airport can have multiple flights booked in advance from the given airport.
0.4.1 Create a Domain Model Class diagram that will show the classes contained in the statement presented at the beginning of the question, Also, indicate multiplicity as well as any three plausible attributes for each class.
1 answer