Instances and Classes

Another dichotomy we see in the notion of a component is the distinction between classes and instances. Let us take, for example, the idea of a receipe. There are likely many instances of recipe, but they will all behave in the same way. We say the behavior is common to the class Recipe.

Since during the design phase our goal is to concentrate on behavior, we can large ignore this distinction and think in terms of prototypical objects, ignorning their individual data values.

[audio] 24 [real] 24 Text to accompany slide 24, in Chapter 2 of An Introduction to Object-Oriented Programming