Acme Travel Agency Case Study: Implementation
With the abstractions Reservable, Reservation, and Broker already in place, it now becomes very easy to implement a reservation system for a particular kind of reservable, such as a Hotel. Figure 5-2 illustrates our inheritance hierarchy. Hotel derives from Reservable, HotelReservation derives from Reservation, and HotelBroker derives from Broker.
Figure 5-2. Class hierarchy for Acme hotel reservation system.
In this section we will examine key pieces of the implementation of the case study, which is in the CaseStudy folder for this chapter.
Running the Case Study
Before proceeding with our code walkthrough, ...