using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace StatePattern { /// /// 状态接口类 /// public interface ICarState { /// /// 启动 /// void Drive(Car car); /// /// 停车 /// void Stop(Car car); /// /// 加速 /// /// void SpeedUp(Car car); /// /// 减速 /// /// void SpeedDown(Car car); } }