A team has two types of players: Batsman, Baller. It is required to assess their performance in a particular tournament and thus find out the best player in each of the categories. The assessment criterion for each type of player is different. For batsman, it is the average of his scores throughout the tournament. For ballers it’s the number of wickets taken in the tournament. Thus, the performance is determined based on score made (in-case of batsman), wickets taken (in-case of baller). There should be a display function that displays all the information of player of a particular category including team name.
Design a class hierarchy for the players in which you are required to find out the best player in each category according to their performance in a tournament. For this, you need to identify classes/objects, attributes against each class/object, operations against each class/object, type of association between (aggregation, composition, or inheritance) classes/objects. After identifying them, you need to make an object model. Your design should be such that which can be used to declare a list of players belonging to each category.