Hi,
As per the definition of encapsulationa and abstraction both are hiding the complexity and making the simple to others. But still in interviews the people aare asking like "if both are same why to naming difference".
Kindly share me the differences with real example .
Veerendra AnnigerePosted Jun 19, 2019, 9:37 PM
Abstraction - is the process (and result of this process) of identifying the common essential characteristics for a set of objects. One might say that Abstraction is the process of generalization: all objects under consideration are included in a superset of objects, all of which possess given properties (but are different in other respects).
Encapsulation - is the process of enclosing data and functions manipulating this data into a single unit, so that to hide the internal implementation from the outside world.
Rajanikant HawaldarPosted Jun 19, 2019, 7:59 AM
Sivakumar KonetiPosted Jun 19, 2019, 7:18 AM
Mohsin ArifPosted Jun 19, 2019, 7:09 AM