public static Eve GetInstance(Adam adam) { if (instance == null) { instance = new Eve(adam, "Eve"); } return(instance); }
public static Adam GetInstance() { if (instance == null) { instance = new Adam("Adam"); } return(instance); }
private Eve(Adam adam, string name) : base(name) { adamInstance = adam ?? throw new ArgumentNullException(); }