April 2019
Intermediate to advanced
360 pages
9h 17m
English
We will use a motor-home manufacturing example to demonstrate the abstract factory design pattern. When motor homes are manufactured, there are many details that must be determined. At a high level, the manufacturer must decide on the type (type A, type B, or type C), the style (for example, camper van, bus, truck), the frame, engine, and kitchen. Our example will support type A, type B, and type C motorhomes, all of which require a style, frame, engine, and kitchen.
The abstract factory design pattern will be used to create object sets, one for each motor-home type.
Read now
Unlock full access