+ 1
i am not little bit confused, i am totally confuse between abstraction and encapsulation.
please tell me what is the difference in between them.
6 Answers
+ 3
In simple words: You do abstraction when deciding what to implement. You do encapsulation when hiding something that you have implemented.
http://stackoverflow.com/questions/11965929/abstraction-vs-encapsulation-in-java
+ 2
abstraction is a generic term in computing referring to deferring the underlying implementations of a program to finer and, more specialized classes/methods, think of it as a high level language like Java, provides a layer of abstraction whereas the real implementations occur at the machine level. Encapsulation on the other hand has to do with providing access modifiers that dictate how objects within you program interact across packages or classes, using the reserved terms private, protected or public to set access level to said objects. encapsulation is a fundamental pillar of object oriented programming
+ 1
continue the data is not accessible to the outside world only those functions which are warned in the class can access it
+ 1
Abstraction is a kind of generalization. Encapsulation is a tool to hide implementation's details from outside a class.
0
the wrapping up of data and functions in to a single and functions in to a single unit is called as encapsulation
0
binding the field and behaviour together is known as encapsulation. .abstraction is used for security purposes