Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

WRITE IN JAVA ASAP: Create an abstract class MOVIE with Attributes Title Duration Language (MKD, ENG, IT, ESP, GER ..) Oscar winner (true/false) Two constructors

WRITE IN JAVA ASAP:

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

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

Advances In Databases And Information Systems Uropean Conference Adbis 2020 Lyon France August 25 27 2020 Proceedings Lncs 12245

Authors: Jerome Darmont ,Boris Novikov ,Robert Wrembel

1st Edition

3030548317, 978-3030548315

More Books

Students also viewed these Databases questions