Then, I use the factory method pattern so that the coupling is with the interface.
然后再使用工厂方法模式,这样耦合度就与界面相关联了。
The first pattern is the strategy pattern, demonstrated by the MessageHandler interface.
第一种模式是strategy 模式,MessageHandler 接口采用的就是这种模式。
Pattern Tap is a showcase of popular interface design for inspiration.
你可以从PatternTap的设计模型展示中获得灵感。
A design pattern might also tell you what not to put in the interface.
设计模式也会告诉你什么不应该放入接口。
A design pattern might also tell you what not to put in the interface.
设计模式也会告诉你什么不应该放入接口。
应用推荐