Question Theme: Design with Inheritance (a) Design and implement a…

Question Answered step-by-step Question Theme: Design with Inheritance (a) Design and implement a… Question Theme: Design with Inheritance(a) Design and implement a java class named Movie with following.Instance variables: title (string), name_of_Director (string).Methods:Specific constructor to receive parameters for all instance variables.get and set methods of private variables (as needed).toString() that returns a string of contents: title and name_of_Director. (b) Design and implement a java class named ComedyMovie which “is a” Movie with the following.Instance variables: ticket_price (double).Methods:Specific constructor to receive parameters for all instance variables.get and set methods of private variables (as needed).toString() that returns a string of contents: title, name_of_Director, and ticket_price. (c) Design and implement a java class named ActionMovie which “is a” Movie with the following.Instance variables: ticket_price (double).Methods:Specific constructor to receive parameters for all instance variables.get and set methods of private variables (as needed).toString() that returns a string of contents: title, name_of_Director, and ticket_price. (d) Design and implement a java class named SpyActionMovie which “is an” ActionMovie with the following.Instance variables: ticket_price (double).Methods:Specific constructor to receive parameters for all instance variables.get and set methods of private variables (as needed).toString() that returns a string of contents: title, name_of_Director, and ticket_price. (e) Design and implement a java program class named MovieDriver. The main() method should create an array of 3 movies as follows: Action movie title = Outlawed, Director = Adam Collins, Ticket price = $10.00Spy action movie title = Cloak and Dagger, Director = Fritz Lang, Ticket price = $12.00Comedy movie = Bridesmaids, Director = Paul Feig, Ticket price = $8.00The main() should print the following.  Computer Science Engineering & Technology Python Programming CCCS 300 Share QuestionEmailCopy link Comments (0)