Question: Creating A flight UML class Flight { public int FlightNumber { get; set; } public string Origin { get; set; } public string Destination {

Creating A flight UML
class Flight
{
public int FlightNumber { get; set; }
public string Origin { get; set; }
public string Destination { get; set; }
public int MaxSeats { get; set; }
public int CurrentPassengers { get; set; }
}
class Customer
{
public string Name { get; set; }
public int FlightNumber { get; set; }// Link to the flight
}
static void ShowMenu()
{
Console.WriteLine("Flight Reservation System");
Console.WriteLine("1. Add Flight");
Console.WriteLine("2. View Flights");
Console.WriteLine("3. Add Customer to Flight");
Console.WriteLine("4. View Bookings");
Console.WriteLine("5. Exit");
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!