Factory method design pattern does not allow for code reuse?

前端 未结 0 335
天涯浪人
天涯浪人 2021-01-21 15:34

I read that Factory Method is used to 1) decouple the class that needs to create the object from the creational code, and 2) reuse the creational code whenever it is needed.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题