Computer Science, asked by Sarim666, 3 months ago

what is the example of data abstraction in Java?​

Answers

Answered by BrainlyProgrammer
3

Data Abstraction:-

Defination:-

The knowledge of essential features without knowing the background details is called Data Abstraction.

Example:-

Suppose you are driving a car. You know how to put a brake, how to turn a car,how to drive a car etc. So for driving a car you don't need to know the internal feature of a car.

Here in this example "essential features" are referred to "how to drive a car" and "background details" are referred to "internal feature of the car".

Answered by Kristy12
9

Answer:

Abstraction is a technique of hiding unnecessary details from the user. The user is only given access to the details that are relevant. ... Java provides abstraction through abstract classes and interfaces. While interfaces provide 100 % abstraction, abstract classes provide partial abstraction.

Explanation:

hope it is helpful to you

Small help from u ‼️

10 Thanks please ❤️

Similar questions