The classes in the domain model for the statement provided are:
1. Passenger
2. Airport
3. Flight
Attributes for each class:
Passenger:
- Name: string
- ID: int
- ContactInfo: string
Airport:
- Code: string
- Name: string
- Location: string
Flight:
- FlightNumber: string
- DepartureTime: datetime
- ArrivalTime: datetime
Multiplicity:
- A passenger can have multiple flights (1 to many)
- An airport can have multiple flights departing/arriving (1 to many)
- A flight can have multiple passengers booked on it (1 to many)
A passenger at the airport can have multiple flights booked in advance from the given airport.
Q.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