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

Illustration of OOP Concepts -- Sending Flowers to a Friend

To illustrate the concepts of OOP in an easily understood framework, consider the problem of sending flowers to a friend who lives in a different city. Chris is sending flowers to Robin.

Chris can't deliver them directly. So Chris uses the services of the local Florist.

Chris tells the Florist (named Fred) the address for Robin, how much to spend, and the type of flowers to send.

Fred contacts a florist in Robins city, who arranges the flowers, then contacts a driver, who delivers the flowers.

If we start to think about it, there may even be other people involved in this transaction. There is the flower grower, perhaps somebody in charge of arrangments, and so on.

Intro OOP, Chapter 1, Slide 15