oo question - mixing controller logic and business logic

后端 未结 4 2163
我寻月下人不归
我寻月下人不归 2021-01-05 15:40

I\'m not sure if I\'m using \"standard\" terms, but this is a basic OO question I\'m trying to resolve.

I\'m coding a windows form. I don\'t want logic in the form

4条回答
  •  不知归路
    2021-01-05 16:16

    The answer to you design question can is as the following scenario: how would you design your application if you also had to provide a web-client for it.

    Both your Windows Forms UI and you Web UI would be calling the same classes and methods. The only difference, then, would be how each populates the UI and communicates with the other layers.

提交回复
热议问题