Iterator
Posted
on Code Project
See other posts from Code Project
Published on Tue, 16 Feb 2010 19:15:00 GMT
Indexed on
2010/06/10
0:03 UTC
Read the original article
Hit count: 223
Filed under:
Imagine that you are game developer. Your game is war stategy. Army has complicated structure: it consists with Hero and three Groups. When King gives decree to treat all soldiers (Hero is also soldier) you want to iterate through all soldiers and call treat() method on each soldier instance. How ca
© Code Project or respective owner