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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE, MSGID_SHORT autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!columbia!caip!meccts!dicome!ndsuvax!ncmagel From: ncmagel@ndsuvax.UUCP (ken magel) Newsgroups: net.lang.ada Subject: inheritance Message-ID: <241@ndsuvax.UUCP> Date: Tue, 12-Aug-86 07:20:30 EDT Article-I.D.: ndsuvax.241 Posted: Tue Aug 12 07:20:30 1986 Date-Received: Fri, 15-Aug-86 20:40:08 EDT Organization: North Dakota State University, Fargo, ND List-Id: 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.