For OOP, are immutable and invariant synonymous?
I have a vague feeling that a difference exists, but I'm not sure.
I believe that immutable typically is applied to objects, while invariant is typically applied to attributes/values.
In both cases the object or variable would remain unmodified and "true", so they seem to be very similar.
Thanks for any feedback as I am trying to improve the precision of my understanding of these terms, and I think I am overlooking the subtle differences.