Example #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;
 }
Example #2
0
 public Tomcat(string name, int age, string gender, ISoundProducable soundProducer)
     : base(name, age, gender, soundProducer)
 {
     this.Sound = "MEOW";
 }
Example #3
0
 public Cat(string name, int age, string gender, ISoundProducable soundProducer)
     : base(name, age, gender, soundProducer)
 {
     this.Sound = "Meow meow";
 }
Example #4
0
 public Frog(string name, int age, string gender, ISoundProducable soundProducer)
     : base(name, age, gender, soundProducer)
 {
     this.Sound = "Ribbit";
 }
Example #5
0
 public Dog(string name, int age, string gender, ISoundProducable soundProducer)
     : base(name, age, gender, soundProducer)
 {
     this.Sound = "Woof!";
 }