Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Design a class hierarchy for the players in which you arerequired to find out th

ID: 3614246 • Letter: D

Question

Design a class hierarchy for the players in which you arerequired to find out the best player in each category according totheir performance in a tournament.

For this, you need to identify classes/objects, attributesagainst each class/object, operations against each class/object,type of association between (aggregation, composition orinheritance) classes/objects.

After identifying them, you need to make an objectmodel. Your design should be such that which can be usedto declare a list of players belonging to each category.

Explanation / Answer

Team will have 2 Classes i) Batsman ii) Bowlers Link both classes both will have following methods (are call behaviour orfunctions) 1. Method 1: Add Score/Wickets 2. Method 2: Remove score/wickets 3. Method 3: Show Score/wicket (Aggregated) to find totalScore 4. Method 4: Show Best Player (Category will be parameter e.g.Bowler or Batsman) 5. Method 5: Show All Players (Aggregated) in a list ... (thismethod can be merged with 3 by providing parameter).
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote