does not initialize the member variable name. Instead, it declares a local variable name that hides the member variable, and initializes the local variable (not the member variable) to "default". Remove the type String if your intention is to initialize the member variable: