Question: 1 . Create a class to hold data about a high school sports team. The Team class holds data fields for high school name (

1. Create a class to hold data about a high school sports team. The Team class holds data fields for high school name (such as Roosevelt High), sport (such as Girls Basketball), and team name (such as Dolphins). Include a constructor that takes parameters (input) for each field and include get methods that return the values of the fields. Also include a public final static String named MOTTO and initialize it to "Sportsmanship!". Write an application named TestTeam to instantiate three Team objects with different values, and then display all the data, including the motto, for each object. Save both the Team.java and TestTeam.java files.
2. Create a class named Game. Include two Team fields that hold data about the teams participating in the game. Also include a field for game time (for example, 7 PM). Include a constructor that takes parameters for two Team objects and a time. Write an application named TestGame to instantiate a Game object, then pass the Game to a method that displays the details about the Game.
Can I have a example in Java pls

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!