You have been tasked with creating management software for soccer team. Your development team has decided to approach the problem using object oriented programming; you have been tasked with developing the object that will represent the soccer team. Briefly describe what members and methods should be included as part of the abstraction for a soccer team.
The program can be modeled by counting the real things in the game. These are
Members:
They will be instances of the class. In the give situation, it can be:
Methods:
The programming can be easily started in procedural style. It can then be refactored to class and objects.
The update() along with render() become necessary here. This is because of the fact that update() is used to change the state in the game and render() will draw the results on the scoreboard.
As an example, when a football object identifies collisions or variations in velocity and as a result position change, render() will be called.
Get Answers For Free
Most questions answered within 1 hours.