示例#1
0
 public Human(string name, Female mother, Male father)
 {
     Name = name;
     if ((mother is null || father is null))
     {
         throw new ArgumentNullException();
     }
     Mother = mother;
     Father = father;
 }
示例#2
0
 public Female(string name, Female mother, Male father) : base(name, mother, father)
 {
 }