• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to make a user-defined class as immutable ?  RSS feed

 
Praveen Vallabhaneni
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to make a user-defined class as immutable is it possible to do like that if so please explain me with example
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaRanchs very own David O'Meara has written an article on this subject: Mutable and Immutable Objects
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to Java In General (Intermediate)
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!