This question is intended to get a sense of your familiarity…

This question is intended to get a sense of your familiarity with terminology and the fundamental aspects of constructing a class. Do the best you can on syntax. Instructions:  Write a class Book class that stores the name of the author, the title of the book, the year it was released, and whether it is still being published. Use appropriate access modifiers and datatypes. include a full constructor that takes parameters for each field and initializes them have a mutator method, pullPublishing, that returns nothing (void) and takes no formal parameters; the method should update the published field to indicate the book is no longer being published include getters for each field and override toString to render the object like so: “book – ” Next, add a class called “Shelf” that stores an ArrayList of Book objects. This class should provide a method, addBook, that takes a Book b and returns nothing. The addBook method should add the book to the arraylist. Lastly, have a main where you instantiate two Books (come up with some title and author info) as well as a Shelf. Add both books to the shelf.

This question is intended to get a sense of your familiarity…

This question is intended to get a sense of your familiarity with terminology and the fundamental aspects of constructing a class. Do the best you can on syntax. Instructions:  Create a class, VideoGame, that stores the name of the developer, the title of the game, the year it was released, and whether it supports multiplayer. Use appropriate access modifiers and data types for each attribute. add a constructor that takes parameters for each field and initializes them provide getter methods for each field, and override the toString method to display the object in the following format: “VideoGame: by – Released in “. Next, create a class called GameLibrary that stores a collection (ArrayList) of VideoGame objects. This class should include a method named addGame that takes a VideoGame object as a parameter and adds it to the ArrayList. Also offer a method, containsMultiplayerGame. Finally, write a main method where you create two VideoGame objects (you can create any developer and game details), as well as a GameLibrary object. Add both games to the library.