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