Question: java please for answer please copy and paste your codes here along with screenshot You are going to develop a class to represent sports players.

You are going to develop a class to represent sports players. *For the instance variables, add the below ones. Make sure that these values cannot be accessed from other classes. Name of the player Age of the player Jersey number *Write at least two constructors (not the default one) *For this class, make sure you follow the encapsulation rules. (Add methods that you think are necessary for encapsulation) *Override the toString method. Return everything in a proper format. implement a class that will represent a soccer team. *For the instance variables, add the below ones. Make sure that these values cannot be accessed from other classes. name of the team number of wins number of losses number of games played players *Write at least two constructors (not the default one) *For this class, make sure you follow the encapsulation rules. (Add methods that you think are necessary for encapsulation) *Write two additional methods. One of them will increase wins by one and the other one will decrease losses by *Write another method to decide if a team is good by returning true if wins are bigger than losses *Write another method to add players to this team *Write another method to search a player in this team by his/her name. If you can find it retum it Write another method to search a player in this team by his/her jersey number. If you can find it return it Lastly add a method to increase the number of games. When a team plays a game you will increase this value by this method) Override the tasting method Return everything including the player games *Finally, use this class with a main method. The general Tow is up to you. But make sure you use the methods you created in the classes name of the team number of wins number of losses number of games played players wwrite at least two constructors (not the default one) *For this class, make sure you follow the encapsulation rules. (Add methods that you think are necessary for encapsulation) *Write two additional methods. One of them will increase wins by one and the other one will decrease losses by *Write another method to decide if a team is good by returning true Ir wins are bigger than losses. *Write another method to add players to this team. *Write another method to search a player in this team by his/her name. If you can find it return it *Write another method to search a player in this team by his/her jersey number if you can find it return it. *Lastly add a method to increase the number of games. (When a team plays a game you will increase this value by this method *Override the toString method. Retum everything including the player names *Finally, use this class with a main method. The general Tow is up to you. But make sure you use the methods you created in the classes Create a BAU Soccer Team, with random wins number and random losses number Add a couple of players to this team Search them Miets team playa couple of times when a team plays it should win or lose don't forget that and call the necessary methods and at the end show us is the BAU Team a good team or not
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
