April 2019
Intermediate to advanced
360 pages
9h 17m
English
We will create a Mattress Manufacturing Factory Demo application to implement the flyweight design pattern. We will create an interface, a Mattress class, a MattressFactory class, and a Driver class. Our application will facilitate the ability to create mattresses of size crib, twin, and full. If a mattress already exists, then new objects will not be created; instead, MattressFactory will provide the size and then the mattress firmness can be determined.
Read now
Unlock full access