public static WithoutCap Instance() { if (instance == null) { instance = new WithoutCap(); } return(instance); }
public Person(string name) { this.name = name; this.state = WithoutCap.Instance(); }
public override void takeCap(Person person) { person.ChangeState(WithoutCap.Instance()); }