package questions; import java.util.Collection; /** * An abstract representation of a set of * multiple choice answers. */ public abstract class MultipleChoiceAnswer extends Answer { private Collection choices; /** * Returns the correct response to the * answer. @ return the correct response to the answer * pre: // Each Answer only has one correct response */ public abstract Response getCorrectResponse(); /** * Retuns all the responses to the answer @ return a collection of all the possible * responses * post: // Each Answer only has one correct response */ public abstract Collection getResponses(); }