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? I didn't bother to clone the name variable, because it holds > 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. This is one I thought about. I wanted to hear what people I left it out because in most of the Java classes I have So the question is, does anybody else out there have an bv
Replies:
|
Sponsored Links
|