public void ChangeState(IProfessorState newState) { this.currentState = newState; }
public override void Start() { base.Display("Hello, World! Starting up....."); this.currentState = new ProfessorGetHomeworkState(); // start in "get homework" }
public Professor(string inputName) { base.Name = inputName; this.currentState = new ProfessorGetHomeworkState(); // default state is "get homework" }