12.3. Reusing Models: A Word About Design Patterns

As discussed in Chapter 2, when learning about something new, we automatically search our "mental archive" for other abstractions/models that we previously built and mastered to look for similarities to build on. This technique of comparing features to find an abstraction that is similar enough to be reused effectively is known as pattern reuse. As it turns out, pattern reuse is an important technique for object-oriented (OO) software development.

Let's say that after we finish up our SRS class diagram, we're called upon to model a reservation system for a bed-and-breakfast (B&B) in Costa Rica. In keeping with the Internet age, the B&B wants to allow its customers to view the rooms and grounds, ...

Get Beginning C# 2008 Objects: From Concept to Code now with O’Reilly online learning.

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