Explore BrainMass
Share

Explore BrainMass

    JAVA-Movie class that can be used with video rental Business

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    Create a Java class named Movie that can be used with your video rental business. The Movie class should track the Motion Picture Association of America (MPAA) rating (e.g., Rated G, PG-13, R), ID Number, and movie title with appropriate accessor and mutator methods. Also create an equals() method that overrides Object's equals() method, where two movies are equal if their ID number is identical. Next, create three additional classes named Action, Comedy, and Drama that are derived from Movie. Finally, create an overridden method named calcLateFees that takes as input the number of days a movie is late and returns the late fee for that movie. The default late fee is $2/day. Action movies have a late fee of $3/day, comedies are $2.50/day, dramas are $2/day. Test your classes from a main method.

    © BrainMass Inc. brainmass.com October 10, 2019, 12:58 am ad1c9bdddf
    https://brainmass.com/computer-science/java/java-movie-class-that-can-be-used-with-video-rental-business-315463

    Solution Summary

    The attached zip folder contains the whole project with all the required classes and files. The code is written in such a manner that somebody who is still learning will be able to follow it very well and will help in his/her learning. Grab and a copy and check out for yourself, how simple programming can be.

    $2.19