reset password
Author Message
Winston423
Posts: 9
Posted 22:13 Oct 01, 2018 |

In the quiz class it tells us that this is where our arraylist Question should be where it takes objects of Question. How do we take the objects into the Quiz class  from the Main Class when its not inherited and it is not the main class where our questions are created?

apena78
Posts: 16
Posted 23:03 Oct 01, 2018 |

The quiz class has an array list that holds question objects.

I made my objects in a method in main and passed the objects into the arraylist in quiz. 

The Quiz class has no reason to inherit anything from question. Its just holding the objects, displaying them as a quiz, taking the input, then grading it.

You can pass the objects into the Question class the same way you pass most variables. I hope this is what youre asking -- not sure i understood you completely. Happy to help if its not clear.