Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Bill I am a regular reader of your Design Techniques column. It is great. Thank you for all your efforts. My question is that in you Worker.clone() method, why the name attribute is not copied? Also I think all class should implement toString() method. My reason is very pratical. When you do debug, at any stage, by System.out.println(worker.toString()); you can see the states of the instance. I have implemented the method in all my classes. I found it very helpful in my debugging process, expecially in the distributed computing envirronment. Looking forword to hearing your comments. Mike Zhou Replies:
|
Sponsored Links
|