コード例 #1
0
 // Change state to PoweredOnState if this function is called.
 public override void TurnKeyOn()
 {
     Console.WriteLine("The car is already on.");
     TheAutoMobile.SetAutomobileState = TheAutoMobile.getIsOnState();
 }