public Human(string name, Female mother, Male father) : this(name) { if (mother == null || father == null) { throw new ArgumentNullException(); } this.Mother = mother; this.Father = father; }
public static Eve GetInstance(Male adam) { if (adam == null) { throw new ArgumentNullException(); } if (instance == null) { instance = new Eve(adam); } return(instance); }
public Female(string name, Female mother, Male father) : base(name, mother, father) { }
private Eve(Male adam) : base("Eve") { }