Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group 1: Minor refactoring #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

liedtkeInTUM
Copy link
Collaborator

Refactors flight classes and introduce person class

@PtrBld PtrBld changed the title Minor refactoring Group 1: Minor refactoring Nov 23, 2021
@@ -0,0 +1,19 @@
package flight.reservation.plane;

public class Vehicle {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vehicles can also be on wheels. Aircraft would be a better name.


public class Passenger extends Person {
Copy link

@SandroWeber SandroWeber Nov 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

introducing Person as a class, the Passenger class seems a bit "empty". Person class itself also seems empty, is the idea to distinguish passengers and crew? Maybe just have either Person or Customer with all the info and a ScheduledFlight could then have a List<Customer> passengers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants