Question: Create a class in java to represent objects for a Video Library, with appropriate instance variables (Name, Year, Rating (1 to 5 stars), Sort movie
Create a class in java to represent objects for a Video Library, with appropriate instance variables (Name, Year, Rating (1 to 5 stars), Sort movie by Title, Sort movie by Rating etc). Four instance variables. Include appropriate constructors, print methods and possibly accessor and mutator methods. Create another class (the main program class) that has an array of your objects (4 to 5) Use a menu which allows users to enter data for a new object one at a time, print all the objects in the array, search for a particular object or compare if two objects have been entered twice.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
