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.

I can't deliver them myself. So I use my local Florist.

I tell my Florist (named Flo) the address for my friend, how much I want to spend, and the type of flowers I wish to send.

Flo contacts a florist in my friends 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.

And so we see, that to solve my problem requires the interaction of an entire community of individuals.

Intro OOP, Chapter 1, Slide 14