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