21 lines
316 B
C#
21 lines
316 B
C#
#region
|
|
|
|
using System;
|
|
|
|
#endregion
|
|
|
|
namespace CarState.States;
|
|
|
|
public class Off : State
|
|
{
|
|
public Off(Car car)
|
|
: base(car) { }
|
|
|
|
public override void TurnKeyClockwise()
|
|
{
|
|
Console.WriteLine("The engine has started");
|
|
Console.WriteLine();
|
|
_car.ChangeState(new Stopped(_car));
|
|
}
|
|
}
|