Computer Science, asked by anushkajoshi198, 1 year ago

In what way is data hiding related to data abstraction?

Answers

Answered by pradeeprengaswamy
6

Answer:

When I am using a bike, I like to switch on and off the bike engine. But in no way I am bothered about, how engine is functioning? This is abstraction.

The inner details such as piston in a engine are not required for the user of the engine. So it is hidden, the same way the source code hides the inner details. This helps you directly use the code without much ambiguity.

Explanation:

Eg. Stack operation requires just the push and pop functions. I dont want to know how push and pop is written. Thus I will hide those details.

Similar questions