Search:

Type: Posts; User: helloworld922

Search: Search took 0.13 seconds.

  1. Replies
    4
    Views
    11,993

    Re: How do I set a static variable??

    Hmm... If I understand you correctly, theLeadingHorse should hold a Horse object, not a Horse class (kind of a big difference). In this case, you can do what it is I said but with Horse objects...
  2. Replies
    4
    Views
    11,993

    Re: How do I set a static variable??

    implement the setter method non-statically. This way it will set the variable based on the instance information with each appropriate horse object. Then, implement the getter method statically so you...
Results 1 to 2 of 2