Abstraction is the gathering of the general characteristics we need and the filtering out of the details and characteristics that we do not need.
When baking a cake, there are some general characteristics between cakes. For example:
When abstracting, we remove specific details and keep the general relevant patterns.
|General patterns||Specific details|
|We need to know that a cake has ingredients||We don't need to know what those ingredients are|
|We need to know that each ingredient has a specified quantity||We don’t need to know what that quantity is|
|We need to know that each cake needs a specified time to bake||We don't need to know how long the time is|