Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You are to write some basic classes in Java. You are to implement Game.java and MainTest.java classes. Each Game object will represent information about a
You are to write some basic classes in Java. You are to implement Game.java and MainTest.java classes. Each Game object will represent information about a specific game that is for sale. Essential data should include:
- Platform
- Name
- Release Date
- Developer
- Genre
- Retail Price
- Rating
You must implement the complete class, including data members and methods. You must implement:
- Constructors
- Getters and Setters
- printGame() To print out any game object. Example output:
PC Cyberpunk 2077 12/10/2020 CD Projekt Red Studio Action RPG, Role-Playing $59.99 M
In a test method in file MainTest.java, test your program by doing the following:
- Create an array (or a list) of Game objects.
- Create a few Game objects, set their values, and save them to the array (or list).
- Loop through the array (or list) and output the games.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started