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