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? 

package theater; class Cinema { private String name = "Sequel"; public Cinema

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

1 Expert Approved Answer
Step: 1 Unlock

The code snippet provided is written in Java It contains two classes Cinema and Movie with Movie ext... View full answer

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 Oracle Questions!