Question: ALL CODE MUST BE WRITTEN IN JAVA Question 2: Implement the following interface. > Game + setName(name:String): void + getName(): String + setVersion(version:int): void +

ALL CODE MUST BE WRITTEN IN JAVA

 ALL CODE MUST BE WRITTEN IN JAVA Question 2: Implement the

Question 2:

following interface. > Game + setName(name:String): void + getName(): String + setVersion(version:int):

void + getVersion(): int + setGenre(genre:String):void + getGenre(): String + GameCharacter is

an abstract class that implements the Game interface. GameCharacter - charName: String

Implement the following interface. > Game + setName(name:String): void + getName(): String + setVersion(version:int): void + getVersion(): int + setGenre(genre:String):void + getGenre(): String + GameCharacter 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 - date Posted: Date + ReviewPage() + ReviewPage(datePosted:Date) + getDate():Date toString():String 1. Use appropriate exception handling in the following functions. [5pts] 2. Implement the following function in Main class. static void add(ReviewPage[] reviews, ReviewPage r) [2pts]//add items to the array and throws exception when exceeds array length. static void remove(ReviewPage[] reviews, String name ) [3pts] // deletes the item by game name and playerName/charName and throws exception when no match is found. static void display(ReviewPage[] reviews) [2pts]//displayes all item and throws exception if no item is in the array static void writeToFile(ReviewPage[] 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!