The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
May 2000

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

How to define and modify attributes to dynamically created objects?

Posted by Spybros on May 28, 2000 at 11:39 AM

Hi All,

I'm currently doing a simple simulation program in which objects (animals) are created and destroyed at runtime. I'm searching for a way to assign and modify attributes to these objects (eg. age). I have tried using vectors but I couldn't find a way to call each unique object. What is the best way to tackle this problem?

Thanks for yr help in advance,

Spybros.



Replies:

Sponsored Links



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