Answered step by step
Verified Expert Solution
Question
1 Approved Answer
code in java Part 6 In the College BasketballPlayer class, create 3 different constructors: Constructor 1: 0-argument constructor that make use of the O-argument constructor
code in java
Part 6 In the College BasketballPlayer class, create 3 different constructors: Constructor 1: 0-argument constructor that make use of the O-argument constructor in the Basket- ballPlayer class and sets eligibilityRemaining to 4 and role to "bench" 2 Constructor 2: 3-argument constructor (name, position, team) that makes use of the 3-argument constructor in the BasketballPlayer class and sets eligibility Remaining to 4 and role to "bench" Constructor 3: 10-argument constructor that receives all argurments and makes use of the 8-argument constructor from the BasketballPlayer class Part 7 In the College BasketballPlayer class, add a method called draftable which returns true (boolean) if the player is a "starter (role) whose value is greater than 4 or is a "bench" player (role) whose value is at least 8. Part 8 In the College BasketballPlayer class, create a new toString method which return a String containing all the information from the toString method of the BasketballPlayer class along with the eligibility Remaining and role values for the player. Part 9 Create a class named ProBasketball Player that extends Basketball Player. The class with two private instance variables: yearsInLeague (int) role (String) Get and set methods should be created for each variable. Part 6 In the College BasketballPlayer class, create 3 different constructors: Constructor 1: 0-argument constructor that make use of the O-argument constructor in the Basket- ballPlayer class and sets eligibilityRemaining to 4 and role to "bench" 2 Constructor 2: 3-argument constructor (name, position, team) that makes use of the 3-argument constructor in the BasketballPlayer class and sets eligibility Remaining to 4 and role to "bench" Constructor 3: 10-argument constructor that receives all argurments and makes use of the 8-argument constructor from the BasketballPlayer class Part 7 In the College BasketballPlayer class, add a method called draftable which returns true (boolean) if the player is a "starter (role) whose value is greater than 4 or is a "bench" player (role) whose value is at least 8. Part 8 In the College BasketballPlayer class, create a new toString method which return a String containing all the information from the toString method of the BasketballPlayer class along with the eligibility Remaining and role values for the player. Part 9 Create a class named ProBasketball Player that extends Basketball Player. The class with two private instance variables: yearsInLeague (int) role (String) Get and set methods should be created for each variableStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started