Add a class MultiChoiceQuestion to the question hierarchy of How To 10.1 that allows multiple correct choices. The respondent should provide all correct choices, separated by spaces. Provide instructions in the question text.

Complete the following file:

Use the following file:

import java.util.Scanner;

public class QuestionDemo
   public static void main(String[] args)
      Question[] quiz = new Question[2];

      MultiChoiceQuestion question0 = new MultiChoiceQuestion(
         "Which countries are in Africa?");
      question0.addChoice("Ghana", true);
      question0.addChoice("Canada", false);
      question0.addChoice("Benin", true);
      question0.addChoice("Denmark", false);
      quiz[0] = question0;

      MultiChoiceQuestion question1 = new MultiChoiceQuestion(
         "Which of the following are vegetables?");
      question1.addChoice("Zuchini", true);
      question1.addChoice("Pepper", true);
      question1.addChoice("Banana", false);
      question1.addChoice("Cabbage", true);
      quiz[1] = question1;

      Scanner in = new Scanner(;
      for (Question q : quiz)
         System.out.println("Your answer: ");
         String response = in.nextLine();