IN JAVA. PLEASE INCLUDE COMMENTS
You will need to first create an object class encapsulating a
Trivia Game which INHERITS from Game.
Game is the parent class with the following
attributes:
description - which is a string
write the constructor, accessor, mutator and toString
methods.
Trivia is the subclass of Game with the additional
attributes:
1. trivia game id - integer
2. ultimate prize money - double
3. number of questions that must be
answered to win - integer.
4. write the accessor, mutator,
constructor, and toString methods.
Write a client class to test creating 5 Trivia objects.
Once you have successfully created Trivia objects, you will
continue 6B by adding a linked list of trivia objects to the Trivia
class.