Skip to Content
Design Patterns Explained: A New Perspective on Object-Oriented Design, Second Edition
book

Design Patterns Explained: A New Perspective on Object-Oriented Design, Second Edition

by Alan Shalloway, James R. Trott
October 2004
Beginner
480 pages
8h 43m
English
Addison-Wesley Professional
Content preview from Design Patterns Explained: A New Perspective on Object-Oriented Design, Second Edition

Chapter 4. A Standard Object-Oriented Solution

Overview

This chapter provides an initial solution to the problem discussed in Chapter 3, “A Problem That Cries Out for Flexible Code.” It is a reasonable first attempt at a solution and gets the job done quickly. However, it misses an important system requirement: flexibility as the CAD/CAM system continues to evolve.

This chapter describes a solution based on object orientation. It is not a great solution, but it is a solution that would work.

Note: I will show only Java code examples in the main body of this chapter. The equivalent C++ and C# code examples can be found at the book’s Web site, http://www.netobjectives.com/dpexplained. Code is handled this way throughout ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Design Patterns Explained: A New Perspective on Object-Oriented Design

Design Patterns Explained: A New Perspective on Object-Oriented Design

Alan Shalloway, James R. Trott
Design It!

Design It!

Michael Keeling

Publisher Resources

ISBN: 0321247140Purchase book