Design a class named Player that holds a player’s number and a player’s name for a player on a sports team.Include methods to ‘get’ and ‘set’ values for the ‘number’ and ‘name’ fields.Design two classes named BaseballPlayer and BasketballPlayer that are child classes of Player. Include a new data field in each class for the player’s position along with methods to ‘get’ and ‘set’ the ‘position’ field.Include an additional field in the BaseballPlayer class for batting average along with methods to ‘get’ and ‘set’ the ‘average’ field. Include a new field in the BasketballPlayer class for free-throw percentage along with methods to ‘get’ and ‘set’ the ‘percentage’ field. Pseudocode:
#Sales Offer!| Get upto 25% Off: