Abstraction is the process of simplifying a complex system by reducing the amount of detail that is visible to the user.
How can abstraction be used in the process ?
Abstraction is a fundamental concept in software development, as it allows us to create more manageable and reusable code. It also makes it easier for users to understand and interact with the software.
One way that abstraction could be used in Elliott's program is to create a class called FootballMatch. This class would encapsulate all of the data and behavior that is related to a football match, such as the date, opponent, result, and goal scorers.
By using abstraction, Elliott would only need to interact with the FootballMatch class to store and retrieve information about football matches. He would not need to worry about the underlying details of how this information is stored or retrieved.
The full question is:
Elliott plays football for OCR FC. He wants to create a program to store the results of each football match they play and the names of the goal scorers. Elliott wants individual players from the team to be able to submit this information.
Define what is meant by abstraction.
Give one example of how abstraction could be used when developing this program.