Introduction to OOP Chapter 1: Thinking Object-Oriented : next previous audio real text

Elements of OOP - Classes

  1. Every object is an instance of a class. A class groups similar objects.

  2. The class is the repository for behavior associated with an object.

The behavior I expect from Fred is determined from a general idea I have of the behavior of Florists.

We say Fred is an instance of the class Florist.

Behavior is associated with classes, not with individual instances. All objects that are instances of a class use the same method in response to similar messages.

Intro OOP, Chapter 1, Slide 25