Question: To implement a simplified version of a system that allows people to rent movies and music albums ( similar to Netflix ) and receive them

To implement a simplified version of a system that allows people to rent movies and music albums (similar to Netflix) and receive them via mail. For this project you will define all the classes/interfaces needed (yes it is your design :)).
For this project you don't need to use inheritance (using Java extends keyword). For this project what you need are classes and interfaces. For those classes that are related, you can define an interface that both classes implement. For example, in a Game system you can have an interface called Game and classes Tetris and Checkers that implement the Game interface. Now you can create an ArrayList and combine both Tetris and Checkers objects in the ArrayList. To tell which kind actual object you have, you use instanceof (see instanceof examples in the lecture code). A Game variable (e.g., Game g) is polymorphic, as it can have the address of a Tetris object or a Checkers object. Only Game methods can be called by using g. If you know that g actually points to a Tetris object (which you can determine using instanceof), you can cast g to a Tetris object and call methods that belong to the Tetris class. It is OK to use inheritance for this project.
Using Collections.sort when classes implement a common interface can be confusing at first. The following example illustrates how we can sort games GameSortingExample.zip Download GameSortingExample.zip.
Grading
(65%) Public Tests
(10%) Release Tests
(15%) Design that includes at least three classes / interfaces (not including the MediaRentalManager class nor the MediaRentalManagerInt interface)
(10%) ArrayList Requirement
Code Distribution
The project's code distribution is available at Project8_Distribution_F24.zip Download Project8_Distribution_F24.zip. Download it and import it as you have imported our class examples. The code distribution provides you with the following:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!