Search:

Type: Posts; User: Junky

Search: Search took 0.44 seconds.

  1. Replies
    7
    Views
    1,683

    Re: instantiating a object

    "ok but suppose you don't know how many instances of Foo you need. say that fact is left up to the programs user"

    You use a Collection to hold your objects as they can increase their size unlike...
  2. Replies
    7
    Views
    1,683

    Re: instantiating a object

    You create new and unique objects rather than changing the properties of the same object.

    class Foo {
    int value;

    public void set(int v) {
    value = v;
    }

    public int...
Results 1 to 2 of 2