While solving problems, specifically complex problems, the concentration should be on core idea and unnecessary components should not be given more attention. By doing this, we are making our problems simple to solve and easy to understand.
Diagram image pending upload by Admin.
Let us consider some examples of Abstraction in the filed of Computing
Example
Steps to Make a Cup of Tea:
- Boil water.
- Put tea bag into to the cup.
- Fill the cup with boiled water.
- After some time, remove tea bag from the cup.
- Add sugar (optional).
- Add Milk (optional).
- Stir for sometime, Tea is ready.
Diagram image pending upload by Admin.
2.9 Creating Generalized Solutions
The problems could be specific, but the best solution needs to be generic. The specific solution could only handle that particular situation that is being faced at any particular time. However, the generic solution could be any time to handle similar problems. This way, we can enhance efficiency, scalability and reusability of our solutions.