示例#1
0
 public override void Hug(CareBearBase careBearToHug)
 {
     Console.WriteLine($"Swipes right on {careBearToHug}");
 }
示例#2
0
 public override void Hug(CareBearBase careBearToHug)
 {
     Console.WriteLine($"Grumpy Bear hates hugs and instead shuns {careBearToHug.Name}.");
 }
示例#3
0
 public override void Hug(CareBearBase careBearToHug)
 {
     Console.WriteLine($"{Name} hates hugs, and shuns {careBearToHug.Name}.");
 }
示例#4
0
 public virtual void Hug(CareBearBase careBearToHug)
 {
     Console.WriteLine($"{Name} runs over to {careBearToHug.Name} and hugs them.");
 }
示例#5
0
 public virtual void Hug(CareBearBase careBearToHug)
 {
     Console.WriteLine($"{Name} runs over to {careBearToHug.Name} and squeezes them, pressing their " +
                       $"{BellyBadge} and {careBearToHug.BellyBadge} together.");
 }
示例#6
0
 public virtual void Hug(CareBearBase careBearToHug) // "virtual" means it can be changed or left as is
 {
     Console.WriteLine($"{Name} runs over to {careBearToHug.Name} and squeezes them, pressing their {BellyBadge} and {careBearToHug.BellyBadge} together.");
 }
示例#7
0
 public override void Hug(CareBearBase careBearToHug)
 {
     base.Hug(careBearToHug);
 }