+ 3
How do you create an Immutable class like String
Immutable class objects can not be modified
2 Respuestas
0
When an object is mutable, attributes are defined when they are created, and never changed after that.
Hide instance variables from outside and omit any method that modifies them.
Concrete ways are varied among languages.
0
final class Immutable {}