array field is less common in java/c# than in c++ and include vector, hashtable, deque.
As an alternative, please consider replacing the array with a vector (or a pointer from array-new). This would use heap memory but total memory usage is probably similar.
- benefit — lower risk of seg fault due to index out of range
- benefit — growable, though in many cases this is unneeded
- benefit — different instances can different sizes, and the size is accessible at run time.
- benefit — compared to a heap array as a field, vector offers RAII safety