-
Junior Member
Re: abstraction Vs encapsulation
hi dear...
Encapsulation is the process of hiding data member and its functionality on data members.
Abstraction is the interface which hides the inner functionality.
Let me explain you with an example...
Lets say there is switch button.. We know that if press it on... it will work if i press it off.. it stops work.. the switch which is given to you is an abstraction as it is hiding inner details... and wires inside the switch and how there wires are working... all are hidden from us.. is an encapsulation.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules