30
Reply

What is data encapsulation ?

Gurmail Multani

Gurmail Multani

Dec 30, 2016
1.5k
1

    Encapsulation is the process of combining data and functions into a single unit called class. In Encapsulation, the data is not accessed directly; it is accessed through the functions present inside the class. In simpler words, attributes of the class are kept private and public getter and setter methods are provided to manipulate these attributes. Thus, encapsulation makes the concept of data hiding possible.

    Bharathi Raja
    January 20, 2018
    0

    Data Encapsulation is an Object Oriented Programming concept that bind a group of related properties, functions, and other members are treated as a single unit. Class is the best example of Data Encapsulation. It sometimes referred to as data hiding that prevents the user to access the implementation details. Encapsulation therefore guarantees the integrity of the data contained in the Object.

    Suresh Kumar
    November 06, 2017
    0

    Data Encapsulation is an Object Oriented Programming concept that bind a group of related properties, functions, and other members are treated as a single unit. Class is the best example of Data Encapsulation. It sometimes referred to as data hiding that prevents the user to access the implementation details. Encapsulation therefore guarantees the integrity of the data contained in the Object.

    Suresh Kumar
    November 06, 2017
    0

    Data wrapping

    Mukesh Kumar
    September 22, 2017
    0

    Data wrapping

    Mukesh Kumar
    September 22, 2017
    0

    Data wrapping

    Mukesh Kumar
    September 22, 2017
    0

    Data wrapping

    Mukesh Kumar
    September 22, 2017
    0

    Data wrapping

    Mukesh Kumar
    September 22, 2017
    0

    Data wrapping

    Mukesh Kumar
    September 22, 2017
    0

    Data wrapping

    Mukesh Kumar
    September 22, 2017
    0

    Data wrapping

    Mukesh Kumar
    September 22, 2017
    0

    Data wrapping

    Mukesh Kumar
    September 22, 2017
    0

    Data wrapping

    Mukesh Kumar
    September 22, 2017
    0

    Data wrapping

    Mukesh Kumar
    September 22, 2017
    0

    Data wrapping

    Mukesh Kumar
    September 22, 2017
    0

    Wrapping data in single form

    Mukesh Kumar
    September 10, 2017
    0

    Wrapping data in single form

    Mukesh Kumar
    September 10, 2017
    0

    Wrapping data in single form

    Mukesh Kumar
    September 10, 2017
    0

    Wrapping data in single form

    Mukesh Kumar
    September 10, 2017
    0

    Wrapping data in single form

    Mukesh Kumar
    September 10, 2017
    0

    Wrapping data in single form

    Mukesh Kumar
    September 10, 2017
    0

    Wrapping data

    Mukesh Kumar
    September 05, 2017
    0

    Wrapping data in single form

    Mukesh Kumar
    September 04, 2017
    0

    Data encapsulation means wrapping the data in single form Class is the example of data encapsulation

    Mukesh Kumar
    August 31, 2017
    0

    Encapsulation means wrapping the data in single formLike class

    Mukesh Kumar
    August 29, 2017
    0

    wrap the data in single form is called as encapsulation class is a example of data encapsulation

    Mukesh Kumar
    August 28, 2017
    0

    encapsulation means wrapping of data member and variable in a single unit called a class. Encapsulation means hiding the internal details of an object. In other word how an object does something.

    sushil kumar
    July 20, 2017
    0

    Data encapsulation is nothing but the actual implementation of the abstraction, means that whatever data you want to hide (thinking process like :Abstraction) from the outer world of the class makes it private and the ultimate goal of that is to hiding the complexity.

    Alok Tripathi
    March 29, 2017
    0

    The scope of the data is defined by the access specifier.This refers data encapsulation.(Eg: private method can be accessed only in that class,public method can be accessed all over the project)

    Ayappan Alagesan
    February 10, 2017
    0

    Data Encapsulation is the method of combining the data and functions inside a class. This hides the data from being accessed from outside a class directly.By this user can only perform a restricted set of actions on the hidden members of the class by executing special functions commonly called functions/methods.Or another : data encapsulation is a mechanism of bundling the data, and the functions that use them.Here is example :public class DataEncapsulation{public class Wallet{private decimal walletBalance = 800.00m;public decimal CheckBalance(){return walletBalance; // Here it HIDES walletBalance and manipulate the balance by "CheckBalance"}}static void Main(){Wallet myWallet = new Wallet();decimal myWalletBalance = myWallet.CheckBalance(); // call to Check balance and it hides "walletBalance" member}}

    Gurmail Multani
    December 30, 2016
    0