shubhank
- Sep 3rd, 2014
encapsulation is not abstraction. and vice versa.
shubhank
- Sep 3rd, 2014
encapsulation is not abstraction. and vice versa.
Priyanka
- Apr 18th, 2015
Abstraction : Hidding the implementation details from the end users is abstraction.
Encapsulation : Wrapping up of data nad functions into a single unit is encapsulation.
Sushant
- Oct 9th, 2015
Example of encapsulation is CLASS
Example of abstraction is to hide details of data from class by using PRIVATE access specifier.
PRIYADHARSHINI
- Mar 16th, 2016
Encapsulation means Binding Code and Data
tuba
- Jun 10th, 2016
Abstraction is the method in which we write its coding in another class. In which we do not know how our function work example SMS in which we only send message we do not know how we send it or what method is present behind the scene.
Encapsulation is the method of hiding its implementation but show its functionality. Example capsule (medicine) in which the medicine is present inside the capsule and while opening this we can also see its medicine
PRANIT PATIL
- Nov 27th, 2017
Encapsulation and abstraction both solve same problem: Complexity; but in different dimensions.
Abstraction: Hides the implementation details of your methods. Provides a base to variations in the application which can grow over a period of time.
Encapsulation is a mechanism by which we design our class such a way that if we change our class in future, we do not need to change the classes which are depending on our classes.
Please Turn OFF your ad blocker
- OR -
LOGIN to continue using GeekInterview website.
Difference between data encapsulation vs abstraction