15 this->courseType = courseType;
27 return ((this->name == other.name) && (this->courseType == other.courseType));
bool operator==(const Program &other)
Checks if two Program objects are identical, which is whether they have the same name and course type...
FieldType getType()
Gets the type under the FieldType enum.
Program(std::string, CourseType)
Constructs the Program object.
std::string getName()
Gets the name of the Program.
FieldType
Enum that represents all the field types.
std::string getNameWithType()
Gets the name with type. The result is the program name, followed by a space, and followed by its typ...
std::string getTypeName()
Gets the type name, which is "Program".
bool isCoreProgram()
Determines if the Program has a Course as core.
std::string getCourseTypeName()
Gets the course type name as a string.
CourseType
Enum Class for course type.