Math.random() ++
programming is an art, a form of expression only the logic side of our brain could appreciate
Pages
Home
Resources
Study List
Cheat Sheet
Notes
Nihongo
Zett
Monday, December 6, 2010
Creating an Immutable Class
I never really tried to make one.
but the idea is to make the constructors private and provide a public static method that will return an instance of the class given the immutable parameters.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment