0
How can I make a class immutable in java ;
Immutable
4 Respuestas
+ 1
make it private and make it final and don't give any setters or getters
+ 2
@Soaked The instance variables need a getter if its private.
(If you want to be able to use them).
0
you can break my answer down on Google of you need
0
hmm.thankyou