Class - member initialization

Jul 27 2009 11:16 PM
Hi there, I am wondering what the difference is in the following 2 classes. Thanks
Class X
{
int i = 10;
}


Class X
{
int i;
public X()
{
i = 10;
}
}

Answers (4)