Encapsulation

Keeping an object's data behind methods that control how it is read or changed.

What is Encapsulation in C#?

Encapsulation — Keeping an object's data behind methods that control how it is read or changed.

class Thermostat
{
    public int Temperature
    {
        get;
        set;
    }
}

Level: Journeyman · More C# terms at this level

Updated

In other subjects