Introduction to OOP: Chapter 2: Responsibility Driven Design: [next] [previous] [audio] [real] [text]

Instances and Classes

We can now clarify a point we earlier ignored. 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.

picture of classes and instance

Since earlier our goal was to identify behavior, we ignored this distinction and concentrated on prototypical objects.

Intro OOP, Chapter 2, Slide 24