ICSE Class 10 Computer Applications
Question 14 of 25
Class as Basis of All Computation — Question 14
Back to all questions 14
Question Question 14
How is data abstraction associated with encapsulation ?
Abstraction and encapsulation are complementary concepts. Abstraction focuses upon the observable behaviour of an object, whereas encapsulation focuses upon the implementation that gives rise to this behaviour. Encapsulation is most often achieved through information hiding, which is the process of hiding all the secrets of an object that do not contribute to its essential characteristics, the structure of an object is hidden, as well as the implementation of its methods. Only the essential characteristics of object are visible.
Thus, encapsulation is a way to implement data abstraction. Encapsulation hides the details of the implementation of an object.