/* * Pre: * Post: A new composition is added to the list of compositions for the audition */ public void addComposition(AuditionCompositions newComp) { compositions.Add(newComp); auditionLength = auditionLength + newComp.composition.playingTime; }
/* * Pre: * Post: Returns true if the input object has the same composition and * point value as the current one */ public override bool Equals(object obj) { AuditionCompositions other = (AuditionCompositions)obj; return(other.composition.compositionId == composition.compositionId && other.points == points); }