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