Question: answer in java Question 5 (25 points) Write a class Game Console. Each Game Console will have a manufacturer, model, storage size and unique serial_number.
Question 5 (25 points) Write a class Game Console. Each Game Console will have a manufacturer, model, storage size and unique serial_number. Finally, each Game Console will have a private is on attribute which can be true or false. The GameConsole class should have a constructor which takes in a manufacturer, model and storage size, and sets up the Game Console object with a unique serial number which is the next sequentially available serial number starting at 200. Game Consoles should be powered off when they are first instantiated. Add a method which allows you to turn on or off the Game Console. When you call this method, if the GameConsole is on, this will turn it off. If the GameConsole is off, this method should turn it on
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
