Ankit Agarwal
What is data hiding and Encapsulation?
By Ankit Agarwal in OOP/OOD on Oct 01 2012
  • Pankaj  Kumar Choudhary
    Mar, 2015 22

    data hiding means hide some important information of class from other class,method or object. abstraction is a mechanism which allow a class to make visible relevant information and hide unnecessary information. Encapsulation enable a programmer to implement a desired level of abstraction using access specifier...

    • 2
  • Bhabani Prasad
    May, 2014 24

    hiding the internal details of an object is called datahiding or abstraction and encapsulation means is the process of binding the data members and functions into a single unit

    • 2
  • Alok Tripathi
    Mar, 2017 29

    Data Abstraction (data hiding) is a thinking process means that the developer should decide what information should show to outer world ,but the actual implementation of the Abstraction is nothing but the Encapsulation , which is achieved by using the access modifiers. you can say that the Encapsulation implements the Abstraction.

    • 1
  • Barkha Gupta
    Feb, 2016 4

    Data Abstration refers to data hiding as it act of represting essential features without including the background details or explanation, on the other hand Encapsulation is the wrapping up of data and functions into a single unit called as class.

    • 1
  • Munesh Sharma
    Apr, 2014 12

    http://programmers.stackexchange.com/questions/173547/what-is-the-difference-between-data-hiding-and-encapsulation

    • 1
  • masthan p
    Dec, 2012 2

    data hiding means hiding the internal details of an object and encapsulation means is the process of binding the data members and functions into a single unit.

    • 1
  • Sandeep Sachan
    Oct, 2012 11

    Simplest example for a developer to explain is think how you define a class with comparison to c++.

    • 1
  • Vithal Wadje
    Oct, 2012 4

    data hiding means hiding the internal details of an object and encapsulation means wrapping of data and code into single unit

    • 1


Most Popular Job Functions


MOST LIKED QUESTIONS