What is difference between Data Abstraction and Data Encapsulation?
Data Abstraction and Data Encapsulation are both Object Oriented Programming (OOPS) Concepts. Encapsulation is the hiding of internal complexity and Abstraction is the presentation of simple concept (or object) to the external world. Abstraction uses in order to do some works easierly. For example, you have a abstract class fruit. And fruit has some methods one of which has to be abstract. So you should fill the body of this method’s body for your each class who are subclass of this abstract class. The purpose of it is that to implement method according to that class. Abstraction is the process of hiding the details and exposing only the essential features of a particular concept or object. Encapsulation is the ability of an object to be a container (or capsule) for related properties (ie. data variables) and methods (ie. functions). Programs written in older languages did not enforce any property/method relationship. This often resulted in side effects where variables had their conten