Factory Pattern
Factory pattern has 2 types, simple factory and general factory patterns.
Simple factory pattern:
Factory class helps create new objects, whenever needs to create a new object, ask factory class to return.
Advantages: Simple, easy to apply, only facto
原创
2021-10-30 19:26:19 ·
50 阅读 ·
0 评论