Beispiel #1
0
 public override void ProduceSound(Animal animal)
 {
     Console.WriteLine("The kitten {0} says: meoow.", this.Name);
 }
Beispiel #2
0
 public override void ProduceSound(Animal animal)
 {
     Console.WriteLine("The dog {0} says: Balo!", this.Name);
 }
Beispiel #3
0
 public override void ProduceSound(Animal animal)
 {
     Console.WriteLine("The frog {0} says: ribbit!", this.Name);
 }
Beispiel #4
0
 public abstract void ProduceSound(Animal animal);