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