Exemple #1
0
 public Person(string name)
 {
     this.name  = name;
     this.state = WithoutCap.Instance();
 }
Exemple #2
0
 public override void takeCap(Person person)
 {
     person.ChangeState(WithoutCap.Instance());
 }