Question: B. Create a class named Game. Include two Team fields that hold data about the teams participating in the game. Also include a field for
B. 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.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
