Esempio n. 1
0
 public void ChangeState(StatePerson state)
 {
     this.state = state;
     Console.WriteLine(this.state.WhoAmI());
 }
Esempio n. 2
0
 public Person(string name)
 {
     this.name  = name;
     this.state = WithoutCap.Instance();
 }