Re: when is it apt to use classes in preference to only arrays and lists
- From: Bryan Oakley <oakley@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Sep 2005 13:21:35 GMT
vikas wrote:
hey i am working on a project in which i will be requiring plenty of different parameters to be associated with similar objects. what is a better idea, to use multidimentional arrays or classes?
The answer is "it depends".
As a general rule, use what you are most familiar with. However, both arrays and classes (and OO packages as a whole) have strengths and weaknesses. Without knowing what your requirements are (memory? Speed? maintainability? ...), it's hard to say.
.
- Follow-Ups:
- Re: when is it apt to use classes in preference to only arrays and lists
- From: Arjen Markus
- Re: when is it apt to use classes in preference to only arrays and lists
- References:
- Prev by Date: accessing tree nodes
- Next by Date: Re: when is it apt to use classes in preference to only arrays and lists
- Previous by thread: when is it apt to use classes in preference to only arrays and lists
- Next by thread: Re: when is it apt to use classes in preference to only arrays and lists
- Index(es):