comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@cs.nyu.edu (Robert Dewar)
Subject: Re: Example of object oriented Ada95 requested!
Date: 1996/01/08
Date: 1996-01-08T00:00:00+00:00	[thread overview]
Message-ID: <dewar.821131894@schonberg> (raw)
In-Reply-To: 4cr0ol$ojr@newsbf02.news.aol.com

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.





      reply	other threads:[~1996-01-08  0:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <slrn4eumdg.4d.cabal@TerpTavern.umd.edu>
1996-01-08  0:00 ` Example of object oriented Ada95 requested! Tucker Taft
1996-01-08  0:00 ` John Herro
1996-01-08  0:00   ` Robert Dewar [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox