Question
in Java Create an abstract class MOVIE with Attributes Title Duration Language (MKD, ENG, IT, ESP, GER ..) Oscar winner (true/false) Two constructors one with
in Java Create an abstract class MOVIE with
Attributes
Title
Duration
Language (MKD, ENG, IT, ESP, GER ..)
Oscar winner (true/false)
Two constructors one with and one without parameters
Abstract method description() which will return the values of the attributes. For the Oscar winner attribute it should return true or false
Abstract method getDuration() which will return the duration
Create the following subclasses: comedy, SF and drama.
Each class should have the attribute year.
Each class should have its own constructor that will utilize the constructor of the superclass
Each class should override methods description() and getDuration(). The description() method should also display information about the year and the appropriate genre.
The main program MOVIESTORE should create an array of movies, e.g. 20.
Create a menu that will enable the following to the user to:
Input a movie: the program should ask about the genre of the movie, then the values for the attributes are input and an object of the
appropriate class is created
List the number of movies according to genre
List all of the comedies (or dramas or SF films)
Output the average duration of all the movies
List the oldest movie that has been input
List all of the languages in which movies have been made
Exit the program
The program should operate until the client enters 0 as a choice.
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