Пример #1
0
        static void Main(string[] args)
        {
            Owner owner = new Owner();
            Safe safe = new Safe();
            JewelThief jewelThief = new JewelThief();
            Locksmith lockSmith = new Locksmith();
            jewelThief.OpenSafe(safe, owner);
            lockSmith.OpenSafe(safe, owner);

            Console.ReadKey();
        }
Пример #2
0
 public void PickLock(Locksmith lockpicker)
 {
     lockpicker.WriteDownCombination(safeCombination);
 }