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