November 2014
Intermediate to advanced
290 pages
6h 22m
English
The façade pattern is a special case of the adapter pattern that provides a simplified interface over a collection of classes. I mentioned such a scenario in the Adapter section but only within the context of a single class, SimpleShip. This same idea can be expanded to provide an abstraction around a group of classes or an entire subsystem.
The following is the class diagram of the façade pattern:

If we take the same SimpleShip class as before and expand it to an entire fleet, we have a great example of the use to create a façade. If it was difficult to sail a single ship, it would be far more difficult to command an entire ...
Read now
Unlock full access