Question: Create the following hierarchy of classes 1. Create a class called player with the following UML diagram Player String name -double salary -int number +Player(String
Create the following hierarchy of classes 1. Create a class called player with the following UML diagram Player String name -double salary -int number +Player(String name, double salary, int number) setter methods getter methods equals method tostring method 2. Create a class called BasketBall player that extends the player class. BasketBallPlayer -int threePointer int turnOvers -int assist -int rebounds int twoPointers String teamName +constructor +setter methods +getter methods +equals +toString getTotalPoints(): int//returns the total points made by the palyer Create a class called soccer player that extends the player class. Soccer int goals -int fouls int redCard
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
