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

            this.Mother = mother;
            this.Father = father;
        }
コード例 #2
0
 public static Eve GetInstance(Male adam)
 {
     if (adam == null)
     {
         throw new ArgumentNullException();
     }
     if (instance == null)
     {
         instance = new Eve(adam);
     }
     return(instance);
 }
コード例 #3
0
 public Female(string name, Female mother, Male father) : base(name, mother, father)
 {
 }
コード例 #4
0
 private Eve(Male adam) : base("Eve")
 {
 }