Question: Please use Eclipse IDE java for developer Lab 4 Write an inheritance hierarchy that stores data about sports players as follows: Create a common superclass

Please use Eclipse IDE java for developerPlease use Eclipse IDE java for developer Lab 4 Write an inheritance

Lab 4 Write an inheritance hierarchy that stores data about sports players as follows: Create a common superclass Player with fields to store the name, number, and team of any player regardless of sport. Provide the appropriate getter and setter methods for each field. Create a subclass Basketballplayer that will inherit the player class and also provide the methods jump, dunk, freeThrow, and threePointer . Each method will return a String indicating the player's action (e.g. jumped, dunked). Create an application Basketballgame that will create two objects player1 and player2 of Basketballplayer with their respective info. Test the methods by executing a "fantasy" game and displaying the details and actions of each player, one action per line (e.g. Lebron James, #23, from Los Angeles Lakers dunked) Add a comment at the beginning of each file indicating your name, course, and section (e.g. //John Doe, CET 3640-OL123) Submit ONLY your source code (i.e. your .java files) to this Blackboard Lab, DO NOT send over email. DO NOT submit screenshots, ZIP files, .class files, or any other kind of file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!