Menu

[solved]-Module Combine Knowledge Class Objects Inheritance Linked Lists Need First Create Object C Q39041057

In this module, you will combine your knowledge of classobjects, inheritance and linked lists. You will need to firstcreate an object class encapsulating a Trivia Game which INHERITSfrom Game.

Game is the parent class with the following attributes:

  1. description – which is a string
  2. write the constructor, accessor, mutator and toStringmethods.

Trivia is the subclass of Game with the additionalattributes:

1. trivia game id – integer

2. ultimate prize money – double

3. number of questions that must beanswered to win – integer.

4. write the accessor, mutator,constructor, and toString methods.

Write a client class to test creating 5 Trivia objects. Once youhave successfully created Trivia objects, you will continue 6B byadding a linked list of trivia objects to the Trivia class.

Expert Answer


Answer to In this module, you will combine your knowledge of class objects, inheritance and linked lists. You will need to first c… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *