Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 ACME Films require a Java application to keep track of BlueRay rentals. You are required to: a) Create a Film class which has

image text in transcribed

Question 1 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 calculateLate Fee 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 LateFee, 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

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

Database Security XI Status And Prospects

Authors: T.Y. Lin, Shelly Qian

1st Edition

0412820900, 978-0412820908

Students also viewed these Databases questions

Question

Demonstrate how to use the Gaps Model for diagnosing and

Answered: 1 week ago

Question

Differentiate between hard and soft measures of service quality.

Answered: 1 week ago