Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 variable

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Business Process Driven Database Design With Oracle PL SQL

Authors: Rajeev Kaula

1st Edition

1795532386, 978-1795532389

More Books

Students also viewed these Databases questions