package Lect35Design; public class ClassicSitCom extends Recorded implements TVProgram { private double lastShowRating; private String network; private String[] sponsors; private String startTime; private String endTime; public ClassicSitCom(String theTitle, String theDirectorName, Award[] theAwards, String theRecordingStartDate, String theRecordingEndDate, double theLastShowRating, String theNetwork, String[] theSponsors, String theStartTime, String theEndTime) { super(theTitle, theDirectorName, theAwards, theRecordingStartDate, theRecordingEndDate); lastShowRating = theLastShowRating; network = theNetwork; sponsors = theSponsors; startTime = theStartTime; endTime = theEndTime; } public double getLastShowRating() { return lastShowRating; } public void setLastShowRating(double theLastShowRating) { lastShowRating = theLastShowRating; } public String getNetwork() { return network; } public String[] getSponsors() { return sponsors; } public String getStartTime() { return startTime; } public String getEndTime() { return endTime; } public String toString() { String result; result = "[ClassiSitCom: " + getTitle() + "]"; result += "[DirectorName: " + getDirectorName() + "]"; result += "[RecordingStartDate: " + getRecordingStartDate() + "]"; return result; } }