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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!