Should a parent class ever reference child classes?

后端 未结 4 750

Good morning,

I inherited some legacy code at work and it is using a rather unusual design pattern. The only reference I could find on the forums to a similar patter

4条回答
  •  感动是毒
    2021-01-14 18:27

    Maybe they have it setup that way to use Log4J in one environment, and Logback in another? I know sometimes developers prefer a tool when doing local development, but when it comes time to deploy have to use whatever the company endorses/approves.

提交回复
热议问题