Question: Movie Class Java 2. Movie Class Name: Movie.java Create a Movie class with the following items: Attributes: . Title Running Time . Release Year Constructors:
Movie Class Java

2. Movie Class Name: Movie.java Create a Movie class with the following items: Attributes: . Title Running Time . Release Year Constructors: .No argument constructor (set the attributes to default values) Constructor that allows the title, running time, and year to be specified Operations: toString0 to return a string representation of the Movie in the format "The Matrix (1999) (136 minutes)" Add a main0 method to the Movie class that creates two Movie objects, one using the no arg constructor and one using the other constructor. Display the result of both Movie object's toString) methods. orDisly the esl o r Example Output: moviel: The Matrix (1999) (136 minutes) movie2: Star Wars (1977) (121 minutes)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
