Exemple #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();
        }
Exemple #2
0
 public void PickLock(Locksmith lockpicker)
 {
     lockpicker.WriteDownCombination(safeCombination);
 }
 public void PickLock(Locksmith lockpicker)
 {
     lockpicker.Combination = safeCombination;
 }
Exemple #4
0
 public void PickLock(Locksmith lockpicker)
 {
     lockpicker.WriteDownCombination(safeCombination);
 }