What is the difference between ENCAPSULATION and ABSTRACTION???? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the difference between ENCAPSULATION and ABSTRACTION????

both the concepts are used to hide the implementation details to the end user

28th Sep 2017, 1:36 PM
mithun
1 Answer
+ 2
not necessarily true. Encapsulation is hiding information from user unless user retrieve data in designated way. Abstraction is to keep important property for object in one place. the purpose is to simplify, not to hide
28th Sep 2017, 5:03 PM
GraceYang