Abstraction is a process of hiding the implementation details from the user only the highlighted set of services provided to the user
Hiding the internal details and showing only necessarily functionality is known as abstraction
Ex.In real world example we know car its gear,break accelerator but we don't know about how the they works internally this is like abstraction
Ex we have television(T.V) in our home and its remote we don't about how it works in internal we just use them as usual
Advantages of Abstraction
1.Security
2.Enhancement
How can we achieve abstraction
1.Creating abstract class
2. Creating interface
Comments
Post a Comment