in OOP :: The "for in" loop makes it easier to loop through the elements in a collection (e.g. characters in a string or objects in a TObjectList) by removing the need for the iterator variable, indexing each element and checking for boundaries.
Interested in creating custom enumerators for your own collection classes?
Read the full article to learn how to Create Custom For-In Iterations
Related:
Comments
No comments yet. Leave a Comment
