Question: 1. Create an interactive Java application that implements a class called Movie, a class derived from Movie called AwardwinningMovie, and a driver to demonstrate the

 1. Create an interactive Java application that implements a class called

Movie, a class derived from Movie called AwardwinningMovie, and a driver to

demonstrate the functionality of the two classes Implementation specifics are described below.

As usual, your program output should resemble the sample runs at the

end of this document. lementationR urements Part 1. Create a superclass called

1. Create an interactive Java application that implements a class called Movie, a class derived from Movie called AwardwinningMovie, and a driver to demonstrate the functionality of the two classes Implementation specifics are described below. As usual, your program output should resemble the sample runs at the end of this document. lementationR urements Part 1. Create a superclass called Movie that represents a movie. Required attributes include title, rating, genre, director, and star. For example, an object of type Movie called starTrekMovie could have attributes Star Trek into Darkness (title), PG-13 (rating), Sci-fi (genre), J.J. Abrams (director), and Chris Pine (star). Implement the Movie class according to the following pecification Five private instance variables that represent title (type string), rating (type String), genre (type string), director (type string), and star (type String) A five-argument constructor that initializes the five instance variables. e set and get methods for each of the five instance variables An equals method that compares two Movie objects for equality and returns a boolean value A toString method that generates nicely formatted output of the Movie attributes. (Note: Your tostring method must override the tostring method of class Object.) Part 2. Create a subclass of Movie called AwardwinningMovie with two additional attributes, award title and award year. For example, Star Trek into Darkness won the ASCAP Award for Top Box Office Films (award title) in 2014 (award year).) Implement the AwardWinningMovie class according to the following specification: Private instance variables awardTitle (type String) and awardYear (type int) A seven-argument constructor that initializes the seven instance variables. (Hint: Start by using the superclass constructor to initialize the inherited instance variables.) set and get methods for each of the two additional instance variables. e An equals method that compares two AwardWinningMovie objects for equality and returns a boolean value A tostring method that generates nicely formatted output of all of the AwardWinningMovie attributes. 1. Create an interactive Java application that implements a class called Movie, a class derived from Movie called AwardwinningMovie, and a driver to demonstrate the functionality of the two classes Implementation specifics are described below. As usual, your program output should resemble the sample runs at the end of this document. lementationR urements Part 1. Create a superclass called Movie that represents a movie. Required attributes include title, rating, genre, director, and star. For example, an object of type Movie called starTrekMovie could have attributes Star Trek into Darkness (title), PG-13 (rating), Sci-fi (genre), J.J. Abrams (director), and Chris Pine (star). Implement the Movie class according to the following pecification Five private instance variables that represent title (type string), rating (type String), genre (type string), director (type string), and star (type String) A five-argument constructor that initializes the five instance variables. e set and get methods for each of the five instance variables An equals method that compares two Movie objects for equality and returns a boolean value A toString method that generates nicely formatted output of the Movie attributes. (Note: Your tostring method must override the tostring method of class Object.) Part 2. Create a subclass of Movie called AwardwinningMovie with two additional attributes, award title and award year. For example, Star Trek into Darkness won the ASCAP Award for Top Box Office Films (award title) in 2014 (award year).) Implement the AwardWinningMovie class according to the following specification: Private instance variables awardTitle (type String) and awardYear (type int) A seven-argument constructor that initializes the seven instance variables. (Hint: Start by using the superclass constructor to initialize the inherited instance variables.) set and get methods for each of the two additional instance variables. e An equals method that compares two AwardWinningMovie objects for equality and returns a boolean value A tostring method that generates nicely formatted output of all of the AwardWinningMovie attributes

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!