Example: displaying attributes of C++ objects

The examples below use the following definitions.
class shape { … };

class line : public shape {
  member variables of class line…
}

line edge;