
Your Guide to Design Patterns – Memento Pattern
The Memento design pattern provides an undo mechanism. It makes it possible to restore an object’s internal state without violating encapsulation.

The Memento design pattern provides an undo mechanism. It makes it possible to restore an object’s internal state without violating encapsulation.

This week we’ll continue our exploration of design patterns and look at another structural pattern, the Façade pattern. The Façade Pattern The Gang of Four book defines the Façade pattern as follows: "Provide a unified interface to a set of interfaces in a subsystem. Façade defines a higher-level interface that makes the

The Observer pattern is another useful design pattern. We can use it when we are interested in the state of an object, and we want to be notified whenever there is a change in its state.

The state pattern is a design pattern hat allows an object to alter its behaviour when its internal state changes.

This week we explore a common structural design pattern: the composite pattern. We can apply the Composite pattern when there is a part-whole hierarchy of objects, and a client needs to deal with objects uniformly regardless of the fact that an object might be a leaf (simple object) or a branch (composite object).

The Decorator Pattern is a structural pattern, also known as the Wrapper pattern. The Decorator Pattern is used to extend (decorate) the functionality of an individual object.

The Iterator Pattern is a behavioural design pattern. It provides a way for us to acces the elements of a collection, without needing to know anything about the internal implementation. We use this so much, that it has become a programming idiom rather than a design pattern.

The Abstract Factory pattern is a design pattern that we use to create families of related or dependent classes. It is like a factory of factories.

The Factory Method pattern is a design pattern that delegates the responsibility of object creation to helper subclasses. The factory method pattern defines an interface for creating an object, but leaves the choice of its type to the subclasses.

The Simple Factory pattern is a design pattern that is not included in the GoF book. It is the easiest factory pattern to understand, and arguably the most commonly used.
Check that incusdata.com is an approved sender, so that your Java tips don’t land up in the spam folder.
Our privacy policy means your data is safe. You can unsubscribe from these tips at any time.
Thank you for completing the form. We're excited that you have chosen to contact us about training. We will process the information as soon as we can, and we will do our best to contact you within 1 working day. (Please note that our offices are closed over weekends and public holidays.)
Our privacy policy ensures your data is safe: Incus Data does not sell or otherwise distribute email addresses. We will not divulge your personal information to anyone unless specifically authorised by you.
If you need any further information, please contact us on tel: (27) 12-666-2020 or email info@incusdata.com