public enum SeatTypes { casual, premium, business } public class Seat { public int SeatNumber {get;set;} public bool IsReserved {get;set;} public string Mark {get;set; } public SeatTypes SeatType {get;set;} public Seat() { } public Seat(int seatNumber, string mark = "NoName", SeatTypes type = SeatTypes.casual) { SeatNumber = seatNumber; IsReserved = false; Mark = mark; SeatType = SeatType; } public void Reserve() { IsReserved = true; System.Console.WriteLine($"Miejsce {SeatNumber} zosatlo zarezerwowane "); } public void CancelReservation() { IsReserved = false; System.Console.WriteLine($"Rezerwacja {SeatNumber} zosatlo "); } }