Medium

Design an Airline Management System Object-Oriented Design Interview

Design an airline domain model covering airports, aircraft seat layouts, scheduled flights versus dated flight instances, passengers, reservations and tickets, seat assignment, and flight status transitions.

1. Problem Statement

Design an airline management system: the airline schedules flights between airports, operates dated flight instances on specific aircraft, and lets passengers book reservations with assigned seats, possibly across multiple legs. Flights move through statuses like scheduled, boarding, departed, and arrived. Start by clarifying scope and the core objects.

2. Live Coding Format

Work in the provided coding workspace while explaining your decisions to the live interviewer. Validation may use inline tests, examples, comments, or a verbal walkthrough.

3. Key Focus Areas

  • 1
    Flight (schedule) vs. FlightInstance (dated operation)
  • 2
    Aircraft seat layout and seat compatibility
  • 3
    Seat assignment uniqueness and release
  • 4
    Flight status transitions and multi-leg itinerary connections

4. What Strong Candidates Should Demonstrate

  • Separate a scheduled Flight template from a dated FlightInstance that owns seats and status.
  • Model aircraft seat layouts and enforce seat existence and cabin compatibility.
  • Enforce one-passenger-per-seat and legal flight-status transitions.
  • Model multi-leg itineraries whose legs must connect.

Want interactive feedback?

Practice this problem in the live coding workspace while the interviewer probes your clarification, implementation, trade-offs, and validation.

Continue to Dashboard

Core Concepts

Object-Oriented DesignDomain ModelingState MachineScheduling

Continue preparing

Build a complete software engineer mock interview plan

Related Object-Oriented Design

Design a Hotel Management System

Design a hotel domain model covering room types and rooms, guests, a half-open date-range value object, the reservation lifecycle, room assignment, check-in/out, and a charges folio, while preventing overlapping bookings on the same room.

Related Object-Oriented Design

Design a Restaurant Management System

Design a restaurant domain model covering tables and capacity, reservations for time slots, seated parties, a menu, orders with priced line items, kitchen status, and bills with payments, keeping booking and order/kitchen state transitions correct.

Related Object-Oriented Design

Design an Online Shopping System

Design an online shopping domain model covering the product catalog, SKU inventory, shopping cart, order lines with snapshotted prices, a checkout flow, a payment boundary, and shipment state transitions.

Related Object-Oriented Design

Design an Online Stock Brokerage System

Design a brokerage domain model covering accounts and portfolios, instruments, a cash ledger, market and limit orders, immutable fills, derived positions, order state transitions, and an external exchange gateway boundary — without building a matching engine.