Implement the MultiChoiceQuestion
class described in Exercise E9.5 of your textbook.
Only override addChoice
and display
.
For the final version, complete the method readQuestions
that reads a sequence of Question
, ChoiceQuestion
or MultiChoiceQuestion
from a file. The question text is on the first line, followed by either
Question
*
, in which case those are the choices for a ChoiceQuestion
*
, in which case those are the choices for a MultiChoiceQuestion