A lesson in OO Design patterns: abstract factories
Scene and intention
Scene: multi-theme / style
Intention: to provide a loosely coupled and scalable design for managing product families
Characteristics
Isolate the actual users of the product from the specific implementers of the product, so that the expansion of the product family does not affect the user code
The use of product families is dynamic, and it can be dynamic.
Design structure
Demo
Https://github.com/zhanglong1/DesignPatternsJava