网友收藏011、状态模式_throwposhold-CSDN博客文章浏览阅读147次。一、UML图二、代码示例package com.designPattern.State;public class Car { private CarState carState = null; public Car() { this.carState = new CarStopState(); } public void start() { _throwposhold... 2024-01-23 17:55 评论 0 阅读 阅读全文