16: Design patterns | CodeGuru

16: Design patterns

Bruce Eckel’s Thinking in Java Contents | Prev | Next This chapter introduces the important and yet non-traditional “patterns” approach to program design. Probably the most important step forward in object-oriented design is the “design patterns” movement, chronicled in Design Patterns , by Gamma, Helm, Johnson & Vlissides (Addison-Wesley 1995). [70] That book shows 23 […]

Written By
CodeGuru Staff
CodeGuru Staff
Mar 1, 2001
1 minute read
CodeGuru content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

This


chapter introduces the important and yet non-traditional “patterns”


approach to program design.

Probably


the most important step forward in object-oriented design is the “design


patterns” movement, chronicled in

Design
Patterns
,
by Gamma, Helm, Johnson & Vlissides (Addison-Wesley 1995).
[70]
That book shows 23 different solutions to particular classes of problems. In
this chapter, the basic concepts of design patterns will be introduced along
with several examples. This should whet your appetite to read
Design
Patterns

(a source of what has now become an essential, almost mandatory, vocabulary for
OOP programmers).

The


latter part of this chapter contains an example of the design evolution


process, starting with an initial solution and moving through the logic and


process of evolving the solution to more appropriate designs. The program shown


(a trash sorting simulation) has evolved over time, and you can look at that


evolution as a prototype for the way your own design can start as an adequate


solution to a particular problem and evolve into a flexible approach to a class


of problems.



[70]

But be warned: the examples are in C++.

Contents

|

Prev

|

Next
CodeGuru Logo

CodeGuru covers topics related to Microsoft-related software development, mobile development, database management, and web application programming. In addition to tutorials and how-tos that teach programmers how to code in Microsoft-related languages and frameworks like C# and .Net, we also publish articles on software development tools, the latest in developer news, and advice for project managers. Cloud services such as Microsoft Azure and database options including SQL Server and MSSQL are also frequently covered.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.