4
Reply

Class - member initialization

Allen sabuhi

Allen sabuhi

Jul 27 2009 11:16 PM
5.6k
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)