DocumentCode :
2093798
Title :
Iterators and encapsulation
Author :
Noble, James
Author_Institution :
Dept. of Comput. Sci., Victoria Univ., Wellington, New Zealand
fYear :
2000
fDate :
2000
Firstpage :
431
Lastpage :
442
Abstract :
Iterators are an important object oriented design pattern, providing sequential access to the state stored in other objects. Precisely because iterators need to access the state of other objects, iterators´ design can be at odds with the encapsulation provided by object oriented languages. We present a range of designs for iterator objects, showing how different designs have different encapsulation properties. Studying a range of different iterators can help programmers to identify the strengths and weaknesses of particular designs, and also illustrates some of the issues in the design of encapsulation mechanisms in programming languages
Keywords :
data encapsulation; object-oriented languages; object-oriented programming; software reusability; encapsulation mechanisms; encapsulation properties; iterator design; iterator objects; object oriented design pattern; object oriented languages; programming languages; sequential access; Encapsulation;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Technology of Object-Oriented Languages, 2000. TOOLS 33. Proceedings. 33rd International Conference on
Conference_Location :
Mont-Saint-Michel
Print_ISBN :
0-7695-0731-X
Type :
conf
DOI :
10.1109/TOOLS.2000.848781
Filename :
848781
Link To Document :
بازگشت