"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...
Type: Posts; User: Junky
"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...
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...