comp.lang.ada
 help / color / mirror / Atom feed
* inheritance
@ 1986-08-12 11:20 ken magel
  0 siblings, 0 replies; only message in thread
From: ken magel @ 1986-08-12 11:20 UTC (permalink / raw)



   If I have read the ADA Reference Manual correctly, it seems that ADA(r)
does support inheritance of the form used in Smalltalk-80 and other object
oriented languages.  The inheritance occurs when one declares a new derived
type which then inherits all the operations already existing for the type
from which it was derived.  One can use blocks to redefine operations if desired
One restriction is that the original subtype must be defined in a package and
the inherited operations are those defined in the package.  This seems to 
correspond almost exactly to the class of Smalltalk-80 even to the extent of 
supporting class variables.  If the packages involved were generic, one could
even build a system of classes and instances, each with their own variables
similar to the way object oriented programs are usually constructed.  

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1986-08-12 11:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1986-08-12 11:20 inheritance ken magel

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