Properties control access to fields within a class: //Field private int number = 0; //Property public int Number { get { return this.number; } set { this.number = value; } } this allows you to control wether a field can be written to or read from and can perform processing if needed. A method contains code: private string SomeMethod(strin input) { string output = input + "123"; return output; }
This is again one of the best book for beginners C#: A beginners Guide by Herbert Schildt Its been given a 4.5 rating. I remember, I just happened to glance through this book. Its certainly good.
Keshav Kamat :) India