Question: Write an inheritance hierarchy that stores data about sports players. Create a common superclass and/or interface to store information common to any player regardless of
Write an inheritance hierarchy that stores data about sports players. Create a common superclass and/or interface to store information common to any player regardless of sport, such as name, number, and salary. Then create subclasses for players of your favorite sports, such as basketball, soccer, or tennis. Place sport-specific information and behavior (such as kicking or vertical jump height) into subclasses whenever possible.
Step by Step Solution
3.41 Rating (157 Votes )
There are 3 Steps involved in it
public class BasketballPlayer extends Player additional statistics private int minutes private int fieldGoalsMade private int fieldGoalsAttempted priv... View full answer
Get step-by-step solutions from verified subject matter experts
