public void Brake(Car car) { Console.WriteLine("Still not moving"); }
public void Brake(Car car) { Console.WriteLine("Stopping"); car.State = new NotMoving(); }
public void Throttle(Car car) { Console.WriteLine("Starting to move"); car.State = new Moving(); }
public void Throttle(Car car) { Console.WriteLine("Moving faster"); }