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