From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,59b48da8620e604f X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Example of object oriented Ada95 requested! Date: 1996/01/08 Message-ID: #1/1 X-Deja-AN: 134430681 references: <4cr0ol$ojr@newsbf02.news.aol.com> organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-01-08T00:00:00+00:00 List-Id: John Herro says " Inheritance usually (but not always) refers to child packages and heirarchical libraries. Sometimes the word inheritance is also used with derived types, which were available in Ada 83. For example, if we write type Count is new Integer; then type Count _inherits_ the operations that Ada already knows for Integer, such as addition, subtraction, etc. That use of the word inheritance has little to do with OOP." I find this *very* confusing, and bvery peculiar. I have never heard of the word inheritance being used in connection with child packages, and I don't think it is a useful application. Inheritance in Ada is a technical term referring to inherited operations, and yes, it is true that Ada 83 derived types provide inheritance, but also it is an extension of this inheritance mechanism that is absolutely fundamental to the OOP model in Ada 95.