I have a program, call it X, that uses two classes: call them Y and Z. X uses Y which uses Z. Y contains an array of Z's.
How do I construct an array of Z's and still allow me to set Z's variables.
For example I know how to declare an array of classes:
and I know how to set values:
but how do I do both?