home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / object / 5068 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.7 KB  |  66 lines

  1. Path: sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!uwm.edu!spool.mu.edu!yale.edu!ira.uka.de!news.belwue.de!news.uni-stuttgart.de!news.uni-stuttgart.de!news
  2. From: LANG@nvdv.e-technik.uni-stuttgart.dbp.de (MARTIN LANG)
  3. Newsgroups: comp.object
  4. Subject: Re: Booch question: new class relationship?
  5. Date: 27 Jan 1993 14:46:27 GMT
  6. Organization: University of Stuttgart, IND (Germany)
  7. Lines: 51
  8. Distribution: world
  9. Message-ID: <1k6783INNka9@info2.rus.uni-stuttgart.de>
  10. References: <894@ulogic.UUCP> <rmartin.727740331@thor>
  11. NNTP-Posting-Host: nvdv01.ind.e-technik.uni-stuttgart.de
  12. X-News-Reader: VMS NEWS 1.24
  13. In-Reply-To: rmartin@thor.Rational.COM's message of 22 Jan 93 22:05:31 GMT
  14.  
  15. > The "using" relationships described in his book have been replaced
  16. > with:
  17. >     Contains by Value
  18. >         Which is a black circle, a double line and a black box
  19. >                 *=========#
  20. >     Contains by Reference
  21. >         A black circle, double line and a white box
  22. >                 *=========[]
  23. >     Uses
  24. >         A white circle, double line and no box.
  25. >         
  26. >         O=============
  27. > Robert Martin       | Design Consulting    | Training courses offered:
  28. > R. C. M. Consulting | rmartin@rational.com |  Object Oriented Analysis
  29. > 2080 Cranbrook Rd.  | Tel: (708) 918-1004  |  Object Oriented Design
  30. > Green Oaks, Il 60048| Fax: (708) 918-1023  |  C++
  31.  
  32.  
  33. Which class relationship is appropriate if you have two relations at the
  34. same time, e.g.
  35.  
  36. class ValueAndUse {
  37.   void AddValue(Value & val);
  38.   
  39.   Value X;
  40. };
  41.  
  42. or
  43.  
  44. class ReferenceAndUse {
  45.  void AddRef(Ref & r);
  46.  
  47.  Ref * ref;
  48. };
  49.  
  50. or
  51.  
  52. class ValueAndReference {
  53.  Member x;
  54.  Member * y;
  55. };
  56.  
  57.  
  58. Martin Lang
  59. University of Stuttgart
  60.