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