Пример #1
0
        static void Main(string[] args)
        {
            Owner owner = new Owner();
            Safe safe = new Safe();
            JewelThief jewelTheif = new JewelThief();

            jewelTheif.OpenSafe(safe, owner);
            Console.ReadKey();
        }
Пример #2
0
 public void ReturnContents(Jewels safeContents, Owner owner)
 {
     stolenJewels = safeContents;
     Console.WriteLine("Kradnę zawartość sejfu! {0}", stolenJewels.Sparkle());
 }