You are on page 1of 1

your design toolbox

Tools for your Design Toolbox


You’ve nearly made it through the first chapter! You’ve
already put a few tools in your OO toolbox; let’s make a
list of them before we move on to Chapter 2. ƒ Knowing the OO basics
does not make you a good
OO designer.
ƒ Good OO designs are
you k n ow the , reusable, extensible, and
e n
We assumcs like abstractihoism,
OO Basics
maintainable.
OO basi lation, polymorp are a
encapsu eritance. If you ull out
ƒ Patterns show you how to
Abstraction and inh usty on these, p riented
build systems with good
little r vorite object-o skim
OO design qualities.
n
Encapsulatio
your fa d review, then ƒ Patterns are proven
Polymorphism book an pter again. object-oriented
Inheritance this cha experience.

OO Pri n c i p l es ƒ Patterns don’t give you


code, they give you
general solutions to
a c lo se r look at
varies. g
k in design problems. You
lat e w h a t We’ll be ta the road and also
Encapsu these down w more to the list.
apply them to your specific
io n over application.
Favor c o m po s it adding a fe
inheritance.
ƒ Patterns aren’t invented,

in t e rf a ce s , not they are discovered.


Program to ions. ƒ Most patterns and
implementat principles address issues
Throughout the of change in software.
book, think about
how patterns rely
ƒ Most patterns allow some
on OO basics and
part of a system to vary

O O Patt er n s principles.
independently of all other
parts.

m ily o f algorithms,
efines a fad makes them
ƒ We often try to take what
at eg y - d
Str lates each one, an ts the algorithm varies in a system and
encapsu geable. Strategy le s that use it. encapsulate it.
interchan endently from client
vary indep
ƒ Patterns provide a
shared language that can
maximize the value of
One down, many to go ! your communication with
other developers.

32 Chapter 1

You might also like