How to avoid multiple nested IFs

前端 未结 6 653
情话喂你
情话喂你 2021-02-01 19:08

I am currently trying to restructure my program to be more OO and to better implement known patterns etc.

I have quite many nested IF-statements and want to get rid of t

6条回答
  •  天命终不由人
    2021-02-01 19:58

    I think this will be useful for you:
    http://sourcemaking.com/refactoring/replace-conditional-with-polymorphism

提交回复
热议问题