The Artima Developer Community
Sponsored Link

Questions and Comments

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:

Questions and Comments

Posted by Mike Zhou on 18 Sep 1998, 7:22 AM

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
Detroit MI



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us