Question: ***Java*** How to submit your solutions: You will create three.java files for this assignment. Compress your project folder to a zip file and please upload
***Java***




How to submit your solutions: You will create three.java files for this assignment. Compress your project folder to a zip file and please upload it on Blackboard Note: Code will be compared against each other using "document similarity" tools. Any evidence of code duplication will result in an 'F' in this assignment or an 'F' in this course In this class you will implement two main classes: Plaver and PlaverDatabase to store the details of a set of players. You will also create another class called A PlayerDatabaseDemo which will contain the main method to test the two classes The Player Class: This class should simulate a player. The class's responsibilities are as follows To know the player's name, score, and shirt number. ASSUME that the name of the player consists of only ONE WORD/String. Instance variables: string Name, int Score, int shirt Required methods: one copy constructor, two constructors, accessors and mutators. The constructors are given below. The Default constructor is written for you. You need to complete the other two constructors. o o public Plaver Name Score-0 Shirt-0 public Plaver (String newName, int newScoxe, int, newShixt) public Plaver(layes P) The Player Dat ao ase Class: The object of this class should store a list of up to 10 objects of the class Player. This class should have private Playerl plavers and private int numPlayers as instance variables. The class should have only one constructor (given below) public playerDat abeint num) numplayexsaum:// need to update this //when you add, //remove players playersnew PlayerumPlaers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
