T
Trevor
If I define a class like so:
class foo
{
private string bar;
private int x;
}
Is it redundant to do this in the constructor:
public foo()
{
bar = null;
x = 0;
}
I guess what I am asking is - Is a string initialized to null or
string.Empty? Is an integer initialize to 0?
class foo
{
private string bar;
private int x;
}
Is it redundant to do this in the constructor:
public foo()
{
bar = null;
x = 0;
}
I guess what I am asking is - Is a string initialized to null or
string.Empty? Is an integer initialize to 0?