#include "EPFLFactory.h"
#include "EPFLStudent.h"
#include "EPFLProfessor.h"


EPFLFactory* EPFLFactory::instance=NULL;

EPFLFactory::EPFLFactory(){

}

Professor* EPFLFactory::createProfessor(string name){
    return new EPFLProfessor(name);
}
Student* EPFLFactory::createStudent(string name){
    return new EPFLStudent(name);
}
EPFLFactory* EPFLFactory::getInstance(){
    if(instance == NULL){
	instance = new EPFLFactory();
    }
    return instance;
}

