public void ExecuteOffButton() { Console.WriteLine("You pressed Off button."); //Delegating the state behavior currentState.PressOffButton(this); }
public void PressOffButton() { currentState.PressOffButton(this); }
public void PressOffButton() { currentState.PressOffButton(this);//Delegating the state }