public static IdentificationStorage getInstance()
 {
     if (singletonReference == null)
     {
         singletonReference = new IdentificationStorage();
     }
     return(singletonReference);
 }
Exemplo n.º 2
0
 public Person(char userType)
 {
     id       = IdentificationStorage.getInstance().GenerateID(userType);
     password = "******";
 }