Exemplo n.º 1
0
 public Animal(string name, int age, string gender, ISoundProducable soundProducer)
 {
     this.name          = name;
     this.age           = age;
     this.gender        = gender;
     this.gender        = gender;
     this.SoundProducer = soundProducer;
 }
Exemplo n.º 2
0
 public Tomcat(string name, int age, string gender, ISoundProducable soundProducer)
     : base(name, age, gender, soundProducer)
 {
     this.Sound = "MEOW";
 }
Exemplo n.º 3
0
 public Cat(string name, int age, string gender, ISoundProducable soundProducer)
     : base(name, age, gender, soundProducer)
 {
     this.Sound = "Meow meow";
 }
Exemplo n.º 4
0
 public Frog(string name, int age, string gender, ISoundProducable soundProducer)
     : base(name, age, gender, soundProducer)
 {
     this.Sound = "Ribbit";
 }
Exemplo n.º 5
0
 public Dog(string name, int age, string gender, ISoundProducable soundProducer)
     : base(name, age, gender, soundProducer)
 {
     this.Sound = "Woof!";
 }