|
-
January 8th, 2003, 01:21 PM
#1
A question about types
I understand that C#.NET basically contains 2 types namely reference types(classes) & value types(int,byte etc.), therefore I have the following enquiries:
Class Point
{
//fields
public int x;
//properties
public int X
{
get{return x;}
set{x = value;}
}
}
In this case, is it correct to label Point.X as a reference type and Point.x as a value type?
Please pardon me for asking such a stupid question for I am still a newbie(2 days old). Thank you all very much : )
end------------------------------
Programmers aren't born, but are made from hardwork, effort and time.
To be a good one, requires more effort and hardwork.
Therefore N quality programmer = (N*hardwork)+(N*effort)+(N*time)
-
January 8th, 2003, 02:34 PM
#2
no its a property value... its not a reference.
Paresh
-
January 8th, 2003, 03:07 PM
#3
end------------------------------
Programmers aren't born, but are made from hardwork, effort and time.
To be a good one, requires more effort and hardwork.
Therefore N quality programmer = (N*hardwork)+(N*effort)+(N*time)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|