home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.object
- Path: sparky!uunet!rational.com!thor!rmartin
- From: rmartin@thor.Rational.COM (Bob Martin)
- Subject: Re: Non-Compatible Type Inheritance in Booch's Method?
- Message-ID: <rmartin.727741373@thor>
- Sender: news@rational.com
- Organization: Rational
- References: <1993Jan21.084130.5007@dragon.acadiau.ca>
- Date: Fri, 22 Jan 1993 22:22:53 GMT
- Lines: 39
-
- 880445p@dragon.acadiau.ca (Ravi Palepu) writes:
-
- |I just gave a seminar on the Booch methodolgy, and of course, someone
- |asked a question that I hoped nobody would. (Lesson in humility)
-
- |Could someone shed some light on inheritance relationships that are
- |not type compatible? (Class Diagrams from 5.2 of OOD w Apps)
-
- |According to the book, he uses derived types in Ada as an example.
- |Thanks in advance.
-
- You can get a copy of Booch's latest paper on the Notation by mailing
- a request to prod_info@rational.com
-
- The notation now supports the inheritance arrow in public, private and
- protected forms.
-
- -----------> public inheritance
-
- --|--------> protected inheritance
-
- --||-------> private inheritance
-
- The old, "inherits (new type) relationship is now a private
- inheritance relationship. It indicates that the inheriting class does
- not conform to the ISA relationship. The public interface of the
- base class is not visible to clients of the subclass. Thus, the
- subclass is a new type, rather than a type which is compatible with
- the base class....
-
- Although there are some good reasons for using private inheritance
- from time to time, it is usually preferable to use private
- containment.
-
- --
- Robert Martin | Design Consulting | Training courses offered:
- R. C. M. Consulting | rmartin@rational.com | Object Oriented Analysis
- 2080 Cranbrook Rd. | Tel: (708) 918-1004 | Object Oriented Design
- Green Oaks, Il 60048| Fax: (708) 918-1023 | C++
-