Abstraction: keep only what matters
Loading…
What you will learn
By the end, you can explain abstraction and pick out the details that matter for a task.
A map of your town does not show every lamppost or every cat. It keeps only what you need to find your way: the roads and the big landmarks. Leaving out details you do not need is called abstraction.
Read the explanation
Abstraction means focusing on the details that matter and leaving out the ones that do not. It helps us understand and solve problems without being distracted. A train timetable keeps the times and stations but not the colour of each train. Programmers use abstraction to build simple models of complicated things.
- Keep the details that matter.
- Leave out the details that do not.
- This makes the problem easier to solve.
