Abstraction is a technique employed by programmers to make problems and programs easier to understand.

The simple definition of abstraction is to “remove detail that isn’t needed to make the problem easier to solve”.

But how do we know what detail is not needed?

The easiest was to identify an ‘abstracted model’ is to ask ourselves if the explanation would now describe the general problem instead of a specific one.

cat - abstractionFor example, this photograph of a cat could be used to describe to someone what a cat is. But if we used this photograph alone to describe what a cat is, we run the risk that they may think all cats have green eyes, white paws, and are tabbies.

That isn’t true, so we would need to remove the details that don’t apply to all cats to create our model.

Instead, we could describe our cat by it’s shape, size, number of legs, and ears. By just keeping the important details, we have created a ‘model’ that can be applied to solve our problem.

Find this page helpful? Share the love on your social media mentioning @TeachAllAboutIT and we’ll enter you in our monthly draw to win a gift voucher for any product on the site!

Share on facebook
Share on google
Share on twitter
Share on linkedin
Share on pinterest
Share on whatsapp

Looking For More?

Lesson Plan




Not a member yet? Sign Up or Log In below