When setting initial values for class members we have the option of setting them in the declaration
public class MyClass {
public int someInt = 300;
// etc. etc.
}
or within the constructor
public class MyClass {
public int someInt;
public MyClass() {
someInt = 300;
}
}
Which of these is considered better practice? Are there any performance differences between the two?