Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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