Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implement the following interface. > Game + setName(name:String): void + getName(): String + setVersion(version:int): void + getVersion(); int + setGenre(genre:String):void + getGenre(): String Game Character

image text in transcribed

image text in transcribed

Implement the following interface. > Game + setName(name:String): void + getName(): String + setVersion(version:int): void + getVersion(); int + setGenre(genre:String):void + getGenre(): String Game Character is an abstract class that implements the Game interface. GameCharacter - charName: String - ability: String - weapon: String - rating: int Setter and getter methods + SetCharDescription(about: String): void getCharDescription(): String The ReviewPage extends the abstract class in Question 2. ReviewPage - datePosted: Date + ReviewPage() + ReviewPage(datePosted:Date) + getDate():Date + toString():String Question 4 20 pts 1. Use appropriate exception handling in the following functions. (Spts) 2. Implement the following function in Main class. static void add ReviewPagel) reviews, ReviewPager) [2pts)/add items to the array and throws exception when exceeds array length. static void remove ReviewPagel) reviews, String name) [3pts] #deletes the item by game name and playerName/charName and throws exception when no match is found. static void display(ReviewPagell reviews) [2pts]\displayes all item and throws exception if no item is in the array static void writeToFile(ReviewPagell reviews) (3pts/Writes the content of the array in a file and throws file related exception 2. Implement the functions above by creating an array of ReviewPage class of size 5. (5pts

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions

Question

Explain corporate motives for forecasting exchange rates.

Answered: 1 week ago