I am new to programming , so I am not sure if it is mistake of the book or I didn't understand correct myself the following:
page 167 : The getter is public, so we can always retrieve Name’s current value. And even without a setter,
we can still assign a value to Name in an initializer or constructor. But after creation, we cannot
change Name from inside or outside the class. ->
shouldn't it be:
"when initialized in the declaration" instead of "in an initializer" ?
Same , on page 167 : Like immutable properties, this can be assigned a value inline as an initializer or in a
constructor, but nowhere else.
"inline as an initializer" -> "when initialized in the declaration"
I am new to programming , so I am not sure if it is mistake of the book or I didn't understand correct myself the following:
page 167 : The getter is public, so we can always retrieve Name’s current value. And even without a setter, we can still assign a value to Name in an initializer or constructor. But after creation, we cannot change Name from inside or outside the class. -> shouldn't it be: "when initialized in the declaration" instead of "in an initializer" ?
Same , on page 167 : Like immutable properties, this can be assigned a value inline as an initializer or in a constructor, but nowhere else. "inline as an initializer" -> "when initialized in the declaration"