Question: In java Problem 1 Write an inheritance hierarchy that stores data about sports players. Create a common superclass to store information common to any player
Problem 1 Write an inheritance hierarchy that stores data about sports players. Create a common superclass 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
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
