Encapsulation
In object-oriented programming, encapsulation means hiding an object’s internal state.
It defines what can be seen and touched from the outside — and what remains within.
A human, as an object, does not reveal itself completely.
There is a public "I", protected beliefs, and private experiences.
public class Human : BaseEntity
{
private string _innerPain = "Unresolved childhood conflict";
protected string _philosophy = "Existence precedes essence.";
public string Name { get; set; }
public void Speak() =>
Console.WriteLine($"I am {Name}. I won't tell you everything.");
}Why do we hide?
private — because it is dangerous, vulnerable, not ready.
protected — because it must be passed on to those who continue you.
public — because it is your mask, your interface, your social API.
If everything were public — it would lead to chaos.
Anyone could alter everything inside you.
Loss of boundaries is loss of identity.