Reference no: EM132170671
Using JAVA:
-use static variables and methods only if needed
-use Arrays NOT Array Lists.
-encapsulation: make sure you protect your class variables and provide access to them though methods
Create 3 classes, app, football player and football team. The application (app) will use the two other classes (football player and football team).
The app will:
create 11 football players using an Array, create a football team using the players above use the football team instance (object) to display the information requested in the lab
a football player class has at least 5 attributes from your choice
a method that returns the complete info about the player
a football team class has a name and
a mascot 11 football players any other attributes (optional)
a method that: displays all the information about a team including: name mascot, and information on each player in the team and assigns a random score to each team.
a method that: display information about a specific player in the team using an input parameter such as the player position or player number for instance.
For instance, from team A, displays information about the quarterback, or display information about player number 5.