Skip to content

Conversation

@Marquez5301
Copy link

@Marquez5301 Marquez5301 closed this May 7, 2020
@Marquez5301 Marquez5301 changed the title Here's the beginning of my airport project Here is my airport project May 7, 2020
@Marquez5301 Marquez5301 reopened this May 7, 2020
var flight2 = Flight(pilots: 2, attendants: 4, passengers: 100, ticketClass: "Business")
var flight3 = Flight(pilots: 2, attendants: 4, passengers: 20, ticketClass: "First Class")

myDeparture.flights.append(flight1)

Choose a reason for hiding this comment

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

This is a great way to append in to your class without creating a new variable. Good job.

//: e. Use a `String?` for the Terminal, since it may not be set yet (i.e.: waiting to arrive on time)
//:
//: f. Use a class to represent a `DepartureBoard` with a list of departure flights, and the current airport
enum FlighStatus: String {

Choose a reason for hiding this comment

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

What was the reason you deleted the previous enum?

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.

2 participants