Add code to both constructors. The code creates and array of references which is
initialized to null when we use new. Then, we add objects or type
TrueFalseQuestion to the array. Type and undestand the comments inside the
constructor.
package lab;
import java.util.Date;
public class TrueFalseQuiz
int currectQuestion;
TrueFalseQuestion trueFalseQuestions;
public TrueFalseQuiz
trueFalseQuestions new TrueFalseQuestion ;
trueFalseQuestions
new TrueFalseQuestionThe Pacific Ocean is larger than the Atlantic Ocean",
true, new Date;
trueFalseQuestions
new TrueFalseQuestionThe Suez Canal connects the Red Sea and the Indian Ocean.",
false, new Date;
trueFalseQuestions
new TrueFalseQuestionThe source of the Nile River is in Egypt.",
false, new Date;
trueFalseQuestions
new TrueFalseQuestionLake Baikal is the world's oldest and deepest freshwater lake.",
true, new Date ;
trueFalseQuestions
new TrueFalseQuestionThe Amazon River is the longest river in the Americas.",
true, new Date;
this. currectQuestion ;
public TrueFalseQuizString questions, boolean trueFalse
create an array of REFERENCES of size questions. length
llthe references are intialized to null