package xmp_question_constructor;

import java.util.Scanner;

/**
   This program shows a simple quiz with two question types.
*/
public class QuestionDemo3
{
   public static void main(String[] args)
   {
      Question first = new Question("Who was the inventor of Java?",
    		  "James Gosling");     

      ChoiceQuestion second = new ChoiceQuestion("In which country was the inventor of Java born?");
      second.addChoice("Australia", false);
      second.addChoice("Canada", true);
      second.addChoice("Denmark", false);
      second.addChoice("United States", false);

      first.presentQuestion();
      second.presentQuestion();
   }

   
}

