Пример #1
0
 public void ChangeState(StatePerson state)
 {
     this.state = state;
     Console.WriteLine(this.state.WhoAmI());
 }
Пример #2
0
 public Person(string name)
 {
     this.name  = name;
     this.state = WithoutCap.Instance();
 }