Acme Travel Agency Case Study: Step 2

We will now apply our knowledge of interfaces to a little restructuring of the Acme case study. A major benefit of using interfaces is that they raise the level of abstraction somewhat, helping you to understand the system by way of the interface contracts, without worrying about how the system is implemented.

As usual, our case study code is in the CaseStudy directory for this chapter.

The Contracts

There are two main sets of contracts in the Acme Travel Agency Case Study. The first specifies operations on customers, and the second, operations involving hotels.

Customer Contract

The ICustomer interface shown ...

Get Application Development Using Visual Basic® and .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.