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 20. Lessons from Design Patterns: Factories

Overview

This chapter discusses the use of factories—objects that make other objects. Although factories are presented in the Gang of Four book, their use in design is not discussed fully.

This chapter

•   Discusses why the use of factories can greatly simplify your design and code.

•   Explains the proper steps of seeing first what your objects are and then deciding how to create and/or manage them.

Factories

Usually, when I am designing objects, I am concerned with their behavior: what the objects do and how other objects tell them to do it. But I also need to be concerned about figuring out when a ...

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