what is field and propery

Posted by Jameschowdare under C# on 4/28/2009 | Views : 1387 | Status : [Member] | Replies : 1
what is field and propery




Responses

Posted by: Vuyiswamb on: 4/28/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Afternoon Jameschowdare

It depends on what topic you are refering too.

Property in C#:
Property ? it is a special method that can return a current object?s state or set it. Simple syntax of properties can see in the following example:
public int Old 

{
get {return m_old;}
set {m_old = value;}
}
public string Name
{
get {return m_name;}
}


and a field might a be database related. a field is a column in a database table

Thank you for Posting at Dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

Jameschowdare, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response