摘要: 我们把影响对象行为的一个或多个动态变化的属性称为状态,状态模式所处理的对象是有状态的,当然状态复杂才能体现出模式的精髓。 简单一点例子就是等红路灯 namespace 状态模式一 { internal class Program { static void Main(string[] args) { 阅读全文
posted @ 2023-02-11 12:51 星仔007 阅读(74) 评论(0) 推荐(0) 编辑