+ 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.

21st Jul 2016, 7:28 PM
Bhavesh Jangale
Bhavesh Jangale - avatar
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
21st Jul 2016, 7:46 PM
WPimpong
WPimpong - avatar
+ 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
22nd Jul 2016, 12:36 AM
Eric Gitangu
Eric Gitangu - avatar
+ 1
continue the data is not accessible to the outside world only those functions which are warned in the class can access it
22nd Jul 2016, 2:14 AM
Ravi Teja
Ravi Teja - avatar
+ 1
Abstraction is a kind of generalization. Encapsulation is a tool to hide implementation's details from outside a class.
22nd Jul 2016, 10:16 PM
gorlok
0
the wrapping up of data and functions in to a single and functions in to a single unit is called as encapsulation
22nd Jul 2016, 2:10 AM
Ravi Teja
Ravi Teja - avatar
0
binding the field and behaviour together is known as encapsulation. .abstraction is used for security purposes
5th Aug 2016, 7:17 AM
Prabhat Kumar
Prabhat Kumar - avatar