Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

comments would be gratefully appreciated ACME Films require a Java application to keep track of BlueRay rentals. You are required to: a) Create a Film

image text in transcribed

comments would be gratefully appreciated

ACME Films require a Java application to keep track of BlueRay rentals. You are required to: a) Create a Film class which has the following data members; idNumber (static int) title (String) classification (String) These data members are tracked using appropriate setter and getter methods and you should include overloaded constructors and an overridden toString() method. The classifications are in line with the Irish Film Classification Office and are as follows: G, PG, 12A, 15A, 16 and 18. You are also required to appropriately plan for a calculateLateFee method, which must be overridden by classes derived from Film. The method signature is as follows: double calculateLateFee(int numDayslate); Each film is to have an ID number, a title and a classification and Film cannot be instantiated. b) You are also required to create a Drama class, an Action class and a Comedy class that are derived from Film. In each of these classes, create an overridden method named calculate Late Fee, which takes as input the number of days a film is late and returns the late fee for that film. Action films have a late fee of 5 per day, comedies are 4 per day and dramas are 3 per day. c) You are required to write a test class called Film Test for your classes and the Film Test class should store instances of Drama, Action and Comedy classes into an Array List. d) Briefly describe, in your own words, what would happen if you declared your ArrayList to handle object types rather than Film types

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Ultimate Database For Cloud Analytics And Mobile

Authors: John Campbell, Chris Crone, Gareth Jones, Surekha Parekh, Jay Yothers

1st Edition

1583474013, 978-1583474013

More Books

Students also viewed these Databases questions

Question

Lo6 Identify several management development methods.

Answered: 1 week ago