Computer Science, asked by chetan3525, 1 year ago

6. What is data abstraction? Explain with an example.

Answers

Answered by harshbaweja32
13
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.


harshbaweja32: mark it brainliest
Answered by Anonymous
12

Data abstraction is the act of representing the essential features without knowing the background details.

for e.g., while driving a car, one must only be aware of using clutch, brake gear and accelator. At the time of using the break to stop the car, the driver need not know the internal mechanism of the car but knows the essential feature of the break that is to stop the car.

xxxxxxxxxxxxxxxxxxxxxx

Similar questions