
#include "Professor.h"

Professor::Professor(std::string name, Room* office, Room* classroom): Person(name)
{
    this->office = (Office*)office;
    this->classroom=(Classroom*)classroom;
}

bool Professor::access(Room* r){
    return ((r == this->office) ||(r == this->classroom));
}

