Object inside the object
Hi
I have made an object of a class MaterialObjects having three fields
Then I have made an Array of those objects.
TO Fix the array length i have made another class called Data object
that takes the object of MaterialObject array and return a fixed length array
Now my problem is how can I access the three fields of Original object
Thanks
[384 byte] By [
vishAlla] at [2007-11-27 11:10:35]

> What do you mean by fix the array length?
Make the length fixed? Just guessing.
I don't understand the question either. Shame that you can't post a class diagram or other UML diagram to the forum. OP, you may want to explain a little more why you want the design you're describing, and it may be easier for the rest of us to follow your thoughts and questions.
To access something inside another object, the standard way is to use a get method. In some cases, you avoid taking things out using the get method, and instead leave it to the object that has the data also to do the work associated with the data (it's considered a basic object-oriented idea: keep the data and the code together).
But I'm rather vague here, and possibly not helpful at all. Please explain more.
OleVVa at 2007-7-29 13:42:39 >
