What is Abstraction
-
Concept of hiding the complex internal details of a system and showing
only the necessary features to the user
Why do we use Abstraction? 1. Reduces Complexity: Users only interact with a high-level interface.
2. Security: It protects the internal implementation from accidental changes.
3. Maintainability: You can change the "under the hood" code without affecting how people use the object.
Examples.
1. ATM Machine: we dont know how it works internally but interface is very user friendly.
2. Car Steering Wheel: All internal details How car is turned are hidden behind wheel