Abstraction :-
Abstraction means a concept not associated with any specific instance.
Abstraction means a concept not associated with any specific instance.
Abstraction show only relevant information/data and
hide irrelevant information from outside world.
Abstraction focus on what object does instead of how does
it.
Abstraction is process of hiding of working style of an
object and showing the information of an object in understandable manner.
Abstraction gives the birth of class.
Abstraction means putting all variables and methods
which common in a class that are necessary i.e. We can say that Abstraction is
a common thing.
Example:-
In .Net library, you have used WriteLine() or Write and
ToString() methods. These are examples of abstraction. These methods only
exposing their name, input parameter and return type. It’s not showing their
actual implementation.
When you an API, then you send only URL of API to your
client. Client only bother about request and response of information. He does
not bother about internal implementation, how request and response logic
working.
Real World Examples:-
Mobile:- Show the icon on Home screen and hide their complexity.
Car:- Show easy way to drive the and hide the functioning
of engine and gear.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.