Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Part 2- Video Games (60pts) 1. Create a VideoGame class. (30pts) The class should contain: a) Four instance variables private String title; private int year;

image text in transcribed
Part 2- Video Games (60pts) 1. Create a VideoGame class. (30pts) The class should contain: a) Four instance variables private String title; private int year; private String rating; private Stringl) platform; b) A constructor to initialize each instance variable public VideoGame(String title, int year, String rating, Stringl] platforms) b) The following methods getTitle0, set Title0, getYear0,setYear0, getRating0, setRating0 /Example publie String getTitle0 i return title; publie void setTitle(String title) f this.title = title; d) Add a toString0 method that will print out a video game in the form public String toString0 f.) //Example Title: The Legend of Zelda Year: 2017 Rating: E Platforms: 3DS Wii U

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

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions

Question

=+j Enabling a productive global workforce.

Answered: 1 week ago