Question: 4) Create the following class. You will NOT need setters and getters for this. There will however be 1 constructor as indicated. class BallGame string

4) Create the following class. You will NOT need setters and getters for this. There will however be 1 constructor as indicated. class BallGame string homeTeam string awayTeam; int homeScore; int awayScore BallGame(string hmTeam, string awTeam, int hmSc, int awSc); bool didHomeTeamWin0 You must implement the constructor and didHomeTeamWin() method. The method must return whether the home team has the larger score. (Note, a tie is not a win) In main Allocate memory for three separate BallGame instances and point to that memory with 3 separate pointer variables, game1, game2, and game3. Make each pointer represent the following data: "Mystics", "Fire", 100,92 "Capitals", "Lightning", 2,3 "Ravens", "Colts",35,35
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
