Behavioural software patterns

These patterns cover algorithms and the assignment of responsibilities between objects. Iterator – this pattern is concerned with allowing iterative access to a composition without exposing the underlying implementation. Typically an iterator is an abstract interface and the composite object creates a concrete iterator that implements it – but the iterator interface is what is… Read More Behavioural software patterns

Creational patterns

The Gang of Four list the following creational patterns: Abstract Factory – an interface for creating families of related or dependent objects without specifying their concrete classes – the example the Gang of Four give is of an abstract factory that produces “abstract widgets” (ie display artefacts) that can then be subclassed to the particular… Read More Creational patterns