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