Question: Create a class called TvShow. It should be a subclass of Production and have the following: 2 instance variables ( both private ) network (
Create a class called TvShow. It should be a subclass of Production and have the following:
instance variables both private
network String
numSeasons int
constructor
It should have parameters for title, genre, year, network, and numSeasons in that order and set all the instance variables to their corresponding parameters.
Getter methods getNetwork and getNumSeasons
addSeason method:
no parameters
no return value
the method should increase the number of seasons by
recommendShow method:
one TvShow parameter the TvShow you will compare the current show with
no return value
It should compare the scores of the current show with the other show the parameter that was passed in and, whichever show has the higher score, it should print a message saying "You should watch" followed by the title of the show.
For example, it might say: You should watch Seinfeld
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
