Arrays vs collection ? more than 100 elements

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I have a discretized simulation model, that has a heirarchical structure.
1 Top level class
M second level classes stored in top level class
N third level classes, stores in each second level class.

Each second level class has N class in it.
What should I use to store them ? Each M and N object is a class with
significant code.

thank you.
vikrantca
 
If you are going to be adding/removing objects a lot, use a collection. If
the size of the array is stable, use arrays as they will be faster.
 
Back
Top