Copyright

Data Abstraction: Definition & Example

An error occurred trying to load this video.

Try refreshing the page, or contact customer support.

Coming up next: Types of Statistical Analysis

You're on a roll. Keep up the good work!

Take Quiz Watch Next Lesson
 Replay
Your next lesson will play in 10 seconds
  • 0:03 What Is Data Abstraction?
  • 0:35 Smartphone Example
  • 1:30 Automobile Example
  • 2:31 Computer Programming Example
  • 4:09 Lesson Summary
Save Save Save

Want to watch this again later?

Log in or sign up to add this lesson to a Custom Course.

Log in or Sign up

Timeline
Autoplay
Autoplay
Speed Speed

Recommended Lessons and Courses for You

Lesson Transcript
Instructor: Michael McMillan

Mike has taught college Computer Science for sixteen years and has a master's degree in Computer Science.

In this lesson, we define the term data abstraction and provide two real-world examples and an example from programming. We demonstrate data abstraction with real-life products and describe how it is used in computer programming.

What Is Data Abstraction?

Data abstraction is the programming process of creating a data type, usually a class, that hides the details of the data representation in order to make the data type easier to work with. Data abstraction involves creating a representation for data that separates the interface from the implementation so a programmer or user only has to understand the interface, the commands to use, and not how the internal structure of the data is represented and/or implemented.

Smartphone Example

An example in the real-world is a mobile or smartphone. The typical smartphone user does not know how calls are made, or how the phone accesses the Internet, or even how data is stored in the phone. Instead, the mobile or smartphone user is provided with an interface that hides these details from them. Making a call simply involves selecting a contact's phone number. Accessing the Internet involves selecting an icon on the screen.

The user does not need to understand the details of how a phone call is placed or how the Internet works. These details are abstracted away from the phone's interface in order to make the phone easier and more effective to use. The design of the mobile or smartphone clearly separates the interface from the implementation. The user can learn the functions of the phone without ever having to know anything about how the phone works internally.

Automobile Example

Another real-life example is an automobile. Most people today know how to operate an automobile without knowing anything about how the internal combustion engine works or how the transmission works. There was a time when most automobile users did have to know something about these details, but as automobile technology improved, the details of the engine and other working parts were abstracted away so that the driver primarily only has to know how to start a car, how to make the car go and stop, how to steer the car, and how to add gasoline when the gas tank is empty.

The automatic transmission is another example of abstraction. When cars were first produced, they only had manual transmissions, and all car drivers had to learn how to shift the gears of the transmission in order for the car to move forward or backward. Over time, the introduction of the automatic transmission abstracted away this layer of knowledge about the implementation of the automobile, making car driving easier for the user.

To unlock this lesson you must be a Study.com Member.
Create your account

Register to view this lesson

Are you a student or a teacher?

Unlock Your Education

See for yourself why 30 million people use Study.com

Become a Study.com member and start learning now.
Become a Member  Back
What teachers are saying about Study.com
Try it risk-free for 30 days

Earning College Credit

Did you know… We have over 200 college courses that prepare you to earn credit by exam that is accepted by over 1,500 colleges and universities. You can test out of the first two years of college and save thousands off your degree. Anyone can earn credit-by-exam regardless of age or education level.

To learn more, visit our Earning Credit Page

Transferring credit to the school of your choice

Not sure what college you want to attend yet? Study.com has thousands of articles about every imaginable degree, area of study and career path that can help you find the school that's right for you.

Create an account to start this course today
Try it risk-free for 30 days!
Create an account
Support