I\'ve been programming in C# and Java recently and I am curious where the best place is to initialize my class fields.
Should I do it at declaration?:
I normally try the constructor to do nothing but getting the dependencies and initializing the related instance members with them. This will make you life easier if you want to unit test your classes.
If the value you are going to assign to an instance variable does not get influenced by any of the parameters you are going to pass to you constructor then assign it at declaration time.