This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
As I known,these are some rules for making a class immutable: 1. Don't provide any methods that modify the object (known as mutators). 2. Ensure that no methods may be overridden. 3. Make all fields final. 4. Make all fields private. 5. Ensure exclusive access to any mutable components.
[ July 25, 2007: Message edited by: Shoumin Li ] [ July 25, 2007: Message edited by: Shoumin Li ]