Author | Message |
---|---|
dliang
Posts: 35
|
Posted 01:15 Sep 29, 2019 |
I can't imagine what's the constructor of the quiz ArrayList should look like and what should we put for the argument of the new Quiz. |
kknaur
Posts: 540
|
Posted 11:19 Sep 29, 2019 |
There are different ways to design the constructor for the quiz class. You could have just a default constructor and and additional method to add a new question to the quiz. You could have a constructor which takes a premade ArrayList of questions. The choice is yours how you want to design it. |
rchatte
Posts: 5
|
Posted 23:26 Oct 04, 2019 |
How to we add a multiple choice question into the array list of questions.While a FiB question has the answer inside of the string, A MCQuestion needs to have choices. Can we create two different methods for fib and MC questions inside of the quiz class?
|
kknaur
Posts: 540
|
Posted 12:26 Oct 05, 2019 |
You should not need to have any special methods if your classes are correct. |