Class TeachingUnitResult
- java.lang.Object
-
- TeachingUnitResult
-
public class TeachingUnitResult extends java.lang.ObjectA result corresponding to a grade associated with a teaching unit.
-
-
Constructor Summary
Constructors Constructor Description TeachingUnitResult(java.lang.String teachingUnitName, Grade grade)Constructs an instance of TeachingUnitResult with a grade equals to the specifiedgradeand a teaching unit name equals to the specifiedteachingUnitName.
-
-
-
Constructor Detail
-
TeachingUnitResult
public TeachingUnitResult(java.lang.String teachingUnitName, Grade grade)Constructs an instance of TeachingUnitResult with a grade equals to the specifiedgradeand a teaching unit name equals to the specifiedteachingUnitName.- Parameters:
teachingUnitName- the name of the teaching unit of the constructed TeachingUnitResultgrade- the grade of the constructed TeachingUnitResult
-
-
Method Detail
-
getGrade
public Grade getGrade()
Returns the grade associated to the result.- Returns:
- the grade associated to the result
-
toString
public java.lang.String toString()
Returns a string representation of the result in the format Name of the teaching unit : X.X.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string representation of the result
-
-