Beispiel #1
0
        public static WithoutCap Instance()
        {
            if (instance == null)
            {
                instance = new WithoutCap();
            }

            return(instance);
        }
Beispiel #2
0
 public Person(string name)
 {
     this.name  = name;
     this.state = WithoutCap.Instance();
 }
Beispiel #3
0
 public override void takeCap(Person person)
 {
     person.ChangeState(WithoutCap.Instance());
 }