Factory Design Pattern (needing critique)

后端 未结 3 594
予麋鹿
予麋鹿 2021-02-02 03:49

I am putting together an explanation and code example of this design pattern, attempting to help others around me grasp it (along with helping myself to master the pattern as we

3条回答
  •  孤街浪徒
    2021-02-02 04:42

    I would suggest you use interfaces instead of abstract classes/inheritance. Other than that, it looks OK.

提交回复
热议问题