Chapter 24
Design Patterns
When faced with the task of solving a new problem, most people will consider first previous problems they have encountered that seem to have characteristics in common with the new assignment. These previous problems can be used as a model, and the new problem can be attacked in a similar fashion, making changes as necessary to fit the different circumstances.
This insight lies behind the idea of a software design pattern. A pattern is really nothing more than an attempt to document a proven solution to a problem so that future problems can be more easily handled in a similar fashion.
Patterns have become important in the development of object-oriented programming because they aid in discussing structures and relationships ...
Get An Introduction to Object-Oriented Programming, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.