Create a class named TennisGame that holds data about a single tennis game. The class has six fields: the names of the two players, the integer final scores for the players, and the String values of the final scores. Include a get method for each of the six fields. Also include a set method that accepts two players’ names, and another set method that accepts the two integer final score values. The integer final score for a player is the number of points the player won during the game; this value should be in the range of 0 through 4. If either of the set method parameters for a score is not in the range of 0 through 4, assign 0 to both scores and assign “error” to the String scores. If both players’ score parameters are 4, assign 0 to both scores and“error” tothe String scores.TheString scorevaluesaresetbythemethodthat sets the integer score values. The String final score for each player contains the traditional names for points in tennis: love, 15, 30, 40, orgame, respectively, for the values 0 through 4. Create a subclass named DoublesTennisGame that includes two additionalfieldsforthenamesofthefirsttwoplayers’ partners.Includegetmethods for the names. Override the parent class setNames() method to accept the names of all four players. Write an application named DemoTennisGames that instantiates several objects of each of these classes. Demonstrate that all the methods assign correct values.