CPSC 210 Lecture Notes - Lecture 8: John Guttag, Turing Award, Deeper Understanding
Document Summary
Often, in object-oriented software, we need to repeat the same set of instructions on a number of di erent objects. Most interesting software systems involve manipulating collections of objects. Software that helps you organize your digital music library would likely represent each song as a separate object. Software that supports registration in courses at ubc would likely represent each student as a separate object. Software that monitors a chemical plant would likely have separate objects representing each sensor that provides data about the current state of the plant. Often, a software system will need to perform a set of operations on each object in a collection. Repeating the operations on each object requires iteration across the collection. You may recall from the data abstraction reading that there are three di erent kinds of abstraction used in the java programming language: procedural abstraction, data abstraction and iteration abstraction.