Lecture Goals. • Cover Material from Chapters 3 and 4 of the Design Patterns Textbook. • Decorator Pattern. • Factory and Abstract Factory Pattern.
The Strategy Pattern. • The Bridge Pattern. • The Abstract Factory Pattern Or lets you vary behavior across subclasses of some abstract class.
This pattern is one level of abstraction higher than factory pattern. • This means that the abstract factory returns the factory of classes.
Human vs Orc Factory patterns are examples of creational patterns ... Use the Abstract Factory pattern in any of the following situations:.
Admin will have different user interface when compared to other users but some of only one instance of a concrete factory in abstract factory pattern ...
Method pattern: Product. The product class is an abstract class that is the superclass of objects produced by the Factory Method pattern.
The Factory Method Design Pattern. Example / Motivation -. A Possible Implementation of the Framework public abstract class Document {.
The Factory Method Design Pattern. Example / Motivation -. A Possible Implementation of the Framework. 6 public abstract class Document {.
and Strategy
Modèles descriptifs vs prescriptifs. Descriptifs Modèles statiques vs dynamiques ... Ceux qu'on va voir : Abstract factory Factory method