Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started