コード例 #1
0
        protected Human(string name, Female mother, Male father)
        {
            if (mother == null || father == null)
            {
                throw new ArgumentNullException();
            }

            Name   = name;
            Mother = mother;
            Father = father;
        }
コード例 #2
0
 public Female(string name, Female mother, Male father) : base(name, mother, father)
 {
 }