332x Filetype PDF File size 0.13 MB Source: userswww.pd.infn.it
Introduction Creational Structural Behavioral
C++designpatterns
P. Ronchese
Dipartimento di Fisica e Astronomia “G.Galilei”
Università di Padova
“Object oriented programming and C++” course
Object oriented programming and C++ C++designpatterns - 1
Introduction Creational Structural Behavioral
Design patterns
A“design pattern” is
acommonsolutionfor a common problem
They became popular due to a book by
Erich Gamma, Richard Helm, Ralph Johnson
and John Vlissides, known as “the gang of four”,
whoidentified and described 23 classic patterns.
Adesign pattern is not an algorithm.
Adesign pattern is a repeatable solution or approach to a
design problem.
Design patterns can be classified in 3 main categories.
Object oriented programming and C++ C++designpatterns - 2
Introduction Creational Structural Behavioral
Pattern classification
Design patterns are classified depending on
the design problem they address
Creational patterns.
Structural patterns.
Behavioral patterns.
Object oriented programming and C++ C++designpatterns - 3
Introduction Creational Structural Behavioral
Creational patterns
Creational patterns deal with object creation
Singleton
(Abstract) Factory
Builder
Prototype
Object oriented programming and C++ C++designpatterns - 4
no reviews yet
Please Login to review.