Question: What is the output of the Movie program? A. Sequel B. Trilogy C. Remake D. Adaptation E. null F. None of the above package theater;
What is the output of the Movie program?

A. Sequel
B. Trilogy
C. Remake
D. Adaptation
E. null
F. None of the above
package theater; class Cinema { private String name = "Sequel"; public Cinema (String name) { this.name = name; } } } public class Movie extends Cinema { private String name = "adaptation"; public Movie(String movie) { this.name="Remake"; } public static void main(String[] showing) { System.out.print(new Movie("Trilogy").name); }
Step by Step Solution
3.36 Rating (140 Votes )
There are 3 Steps involved in it
The code snippet provided is written in Java It contains two classes Cinema and Movie with Movie ext... View full answer
Get step-by-step solutions from verified subject matter experts
