Link to home
Create AccountLog in
Avatar of HLRosenberger
HLRosenbergerFlag for United States of America

asked on

List of Items

if I have a class, and a function that I want to return  as list of items that are of the class type, how do I do this?  Is there a collection type?  A list?
SOLUTION
Avatar of mccarl
mccarl
Flag of Australia image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of HLRosenberger

ASKER

Great!  Thanks! And there an easy way to loop through the list?
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Thanks
>> you normally use iterators for looping thru data structures like the list .

Only if you need to change the contents of the collection during the iteration.