public Staff(ulong ID, string FIRSTNAME, string LASTNAME, string TYPE) { id = ID; firstName = FIRSTNAME; lastName = LASTNAME; type = TYPE; if (type == "Professor") { professor prof = new professor(id); constList = prof.getConstraintsList(); } else { instructor inst = new instructor(id); constList = inst.getConstraintsList(); } isPublished = new dataBaseOperations().getPublishedSched(id); }