Exemplo n.º 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;
        }
Exemplo n.º 2
0
 public static Eve GetInstance(Male adam)
 {
     if (adam == null)
     {
         throw new ArgumentNullException();
     }
     if (instance == null)
     {
         instance = new Eve(adam);
     }
     return(instance);
 }
Exemplo n.º 3
0
 public Female(string name, Female mother, Male father) : base(name, mother, father)
 {
 }
Exemplo n.º 4
0
 private Eve(Male adam) : base("Eve")
 {
 }