예제 #1
0
 public void ReceiveContents(Jewels safeContents)
 {
     _returnedContents = safeContents;
     Console.WriteLine("Thank you for returning my jewels!" + safeContents.Sparkle());
 }
예제 #2
0
 public override void ReturnContents(Jewels safeContents, Owner owner)
 {
     _stolenJewels = safeContents;
     Console.WriteLine("I'm stealing the contents! " + _stolenJewels.Sparkle());
 }