G
Guest
Hi,
It seems to me (using C# 2005 beta and NET 2 beta) that both of these are
the same:
public class test
{
int t = 500;
}
pulbic class test
{
int t;
public test()
{
t = 500;
}
}
Meaning in such case you dont need the constructor. Is that right ? Any
avantages or disavantages ?
It seems to me (using C# 2005 beta and NET 2 beta) that both of these are
the same:
public class test
{
int t = 500;
}
pulbic class test
{
int t;
public test()
{
t = 500;
}
}
Meaning in such case you dont need the constructor. Is that right ? Any
avantages or disavantages ?