Open LAWTED opened 2 years ago
Huh, this is simply an attribute of Flight class which corresponds to a Flight object's unique number like 'CZ8829'. There's going to be a Airport class which contains a collection of Flight objects, that is, some flights. Airport class will handle Flight object manipulations and we simply care about the basic information that is of necessity to be contained within the Flight class here. 😎
https://github.com/Norman-Ou/EBU6304-2022-Software-Engineering-Group-8/blob/2d125849ce64a0223c3d2d05556b52dc7144f886/src/main/java/Passenger/BoardingPass.java#L13-L17
reason
flight should be a flight object instead of a string, to ensure the destination etc.