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

  1. Newsgroups: comp.object
  2. Path: sparky!uunet!rational.com!thor!rmartin
  3. From: rmartin@thor.Rational.COM (Bob Martin)
  4. Subject: Re: Non-Compatible Type Inheritance in Booch's Method?
  5. Message-ID: <rmartin.727741373@thor>
  6. Sender: news@rational.com
  7. Organization: Rational
  8. References: <1993Jan21.084130.5007@dragon.acadiau.ca>
  9. Date: Fri, 22 Jan 1993 22:22:53 GMT
  10. Lines: 39
  11.  
  12. 880445p@dragon.acadiau.ca (Ravi Palepu) writes:
  13.  
  14. |I just gave a seminar on the Booch methodolgy, and of course, someone
  15. |asked a question that I hoped nobody would. (Lesson in humility)
  16.  
  17. |Could someone shed some light on inheritance relationships that are
  18. |not type compatible? (Class Diagrams from 5.2 of OOD w Apps) 
  19.  
  20. |According to the book, he uses derived types in Ada as an example.
  21. |Thanks in advance.
  22.  
  23. You can get a copy of Booch's latest paper on the Notation by mailing
  24. a request to prod_info@rational.com
  25.  
  26. The notation now supports the inheritance arrow in public, private and
  27. protected forms.
  28.  
  29.         -----------> public inheritance
  30.  
  31.         --|--------> protected inheritance
  32.  
  33.         --||-------> private inheritance
  34.  
  35. The old, "inherits (new type) relationship is now a private
  36. inheritance relationship.  It indicates that the inheriting class does
  37. not conform to the ISA relationship.  The public interface of the
  38. base class is not visible to clients of the subclass.  Thus, the
  39. subclass is a new type, rather than a type which is compatible with
  40. the base class....
  41.  
  42. Although there are some good reasons for using private inheritance
  43. from time to time, it is usually preferable to use private
  44. containment.
  45.  
  46. --
  47. Robert Martin       | Design Consulting    | Training courses offered:
  48. R. C. M. Consulting | rmartin@rational.com |  Object Oriented Analysis
  49. 2080 Cranbrook Rd.  | Tel: (708) 918-1004  |  Object Oriented Design
  50. Green Oaks, Il 60048| Fax: (708) 918-1023  |  C++
  51.