home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.object
- Path: sparky!uunet!spool.mu.edu!agate!tfs.com!tfs.com!eric
- From: eric@tfs.com (Eric Smith)
- Subject: Re: Object-Oriented Methodologies - Class Specifications
- Message-ID: <1992Sep7.034245.602@tfs.com>
- Organization: TFS
- References: <graham.715679543@galois> <1992Sep6.003055.2236@tfs.com> <graham.715829976@galois>
- Date: Mon, 7 Sep 1992 03:42:45 GMT
- Lines: 11
-
- In article <graham.715829976@galois> graham@maths.su.oz.au (Graham Matthews) writes:
- >still ... the challenge is in modelling the relationships between objects,
- >not in modelling the objects themselves. In my opinion OO does a good job
- >of the latter and a poor job of the former.
-
- The trick is to see that relationships are themselves objects. For example,
- the ways a line and a circle can relate to each other are the line-circle
- relationship, which is a subclass of the two-geometric-figure relationship.
- Intersections are a feature of geometric figures, and the intersections of
- a line and a circle are a feature of the line-circle-relationship subclass
- of the two-geometric-figure relationship.
-