public Context(StateBase state) { State = state; Console.WriteLine("Create object of context class with initial State."); }
public Context(StateBase state) { State = state; }
public Context(StateBase state) { _state = state; State = _state; }
public PrintMachine(int cost) { Cost = cost; State = new InitState(); }