I'm comming from Java world mainly. So, C# properties do look nice.
I know that with C# 3.0 or above I can use Automatic Properties. I like it even more :).
My question is about a (maybe older) code where I can see this:
private int age;
public int Age {
get { return age; }
set { age = value; }
}
Why do I need the private field age? What I'm I really hiding here?
EDIT:
I completely understand the need for the getter and setter. I mentioned that I'm comming from Java world and doing this all the time.
I do understand that Automatic Properties in C# 3.0 or above are syntatic sugar. But maybe my question has a simpler answer. Does it means that (bellow C# 3.0) the property doesn't hold any value. So it must get the value from some other field?