Design a class named player that holds a player number and


Complete the following tasks:

a. Design a class named Player that holds a player number and name for a sports team participant. Include methods to set the values for each data field and print the values for each data field.

b. Design two classes named Baseball Player and Basket ball Player that are child classes of Player.
Include a new data field in each class for the player's position. Include an additional field in the Baseball Player class for batting average. Include a new field in the Basket ball Player class for free-throw percentage.

c. Design an application that instantiates an object of each type and demonstrates all the methods.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Design a class named player that holds a player number and
Reference No:- TGS01474348

Expected delivery within 24 Hours