Пример #1
0
        public void OpenSafe(Safe safe, Owen owner)
        {
            safe.PickLock(this);
            Jewels safeContents = safe.Open(writtenDownCombination);

            ReturnedContents(safeContents, owner);
        }
Пример #2
0
 override public void ReturnedContents(Jewels safeContents, Owen owen)
 {
     stolenJewels = safeContents;
     Console.WriteLine("I'm stealing the contents! " + stolenJewels.Sparkle());
 }
Пример #3
0
 public void ReceiveContents(Jewels safeContents)
 {
     returnedContents = safeContents;
     Console.WriteLine("Thank your for returning my jewels " + safeContents.Sparkle());
 }
Пример #4
0
 virtual public void ReturnedContents(Jewels safeContents, Owen owen)
 {
     owen.ReceiveContents(safeContents);
 }