How can i “unset” a class that has been declared

前端 未结 4 1176
一生所求
一生所求 2021-01-12 10:38

I have a complete Form Creation System. There are many different Question Types and I have to check if the answer which the person had made is correct.

All types of

4条回答
  •  清酒与你
    2021-01-12 11:13

    No. You have a design flaw.
    You should have probably let the different type of questions inherit from one abstract question class and/or (1) used the factory pattern or (2) used the strategy pattern.

提交回复
热议问题