Exemplo n.º 1
0
 public TeacherFactory getTeacherObj()
 {
     if (tfr == null)
     {
         tfr = new TeacherFactory();
     }
     return(tfr);
 }
Exemplo n.º 2
0
 public static TeacherFactory getTeacherFactoryObj()
 {
     if (instance == null)
     {
         instance = new TeacherFactory();
         return(instance);
     }
     else
     {
         return(instance);
     }
 }