Behavioral Patterns - Example: Handling timer events - Flexible solution based on the design pattern Observer - Practical exercise: Using the observer pattern in the elevator control - Pitfalls in interface design or implementation - "Horizontal" and "vertical" interfaces - Event handling based on the design pattern Command - Practical exercise: Using the command pattern in the elevator control - Example: Traditional implementation of a state machine in C - Object-oriented solution based on the design pattern State -实践练习:使用电梯控制中的状态模式 - 示例:用户定义的内存管理 - 使用分区管理器分区及其管理 - 基于设计模式策略的灵活内存管理 - 实用练习:使用电梯控制中的策略模式 - 示例:具有常见基本结构的策略 - 基于设计模式模板方法
主要关键词