+ 2
what is difference between abstraction and encapsulation?
4 ответов
+ 3
this difference can be understood easily with example of a capsule medicine.
the process of hiding medicine inside the capsule is known as encapsulation.
and the patient doesn't know about anything inside capsule is known abstraction.
abstraction is achieved via encapsulation
+ 1
thanks frnds
0
encapsulation is the process of binding data variables and methods inside a class is known as encapsulation
and abstraction is the process of hiding background details only providing essential details
0
wat I conclude that..abstraction is nothing but how data is hidden.. encapsulation is what Should be hidden or what to show or not