Esempio n. 1
0
        static void Main(string[] args)
        {
            Owner owner = new Owner();
            Safe  safe  = new Safe();

            Locksmith locksmith = new Locksmith();

            locksmith.OpenSafe(safe, owner);

            JewelThief jewelThief = new JewelThief();

            jewelThief.OpenSafe(safe, owner);

            Console.ReadKey();
        }
Esempio n. 2
0
 public void PickLock(Locksmith lockpicker)
 {
     lockpicker.WriteDownCombination(safeCombination);
 }
 public void PickLock(Locksmith lockpicker)
 {
     lockpicker.Combination = safeCombination;
 }
Esempio n. 4
0
 public void PickLock(Locksmith lockpicker)
 {
     lockpicker.WriteDownCombination(safeCombination);
 }