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:
Z arrayOfZ[NUM]
and I know how to set values:
Z newZ(5)
but how do I do both?
Thanks