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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,35ff4205aedc7a86,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-16 18:59:50 PST Path: supernews.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail From: Stephen Griese Newsgroups: comp.lang.ada Subject: Question on Types Date: Sat, 16 Dec 2000 19:28:16 -0500 Organization: Posted via Supernews, http://www.supernews.com Message-ID: <3A3C089E.63602D08@nni.com> X-Mailer: Mozilla 4.7 [en]C-CCK-MCD NSCPCD47 (Win95; I) X-Accept-Language: en MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: newsabuse@supernews.com Xref: supernews.google.com comp.lang.ada:3211 Date: 2000-12-16T19:28:16-05:00 List-Id: Here's a newbie question for you all. I know almost nothing about Ada, other than that it is has a lot of safety features that appeal to me. So I am thinking of diving in an trying to do a small project in Ada. The only thing that worries me is the fact that Ada does not have multiple inheritance. Which gets me to my question. Having been developing in Java for a while now, I have gotten really used to Java interfaces. Is there any means to declare a class that is actually more than one type? As in the Java class: class AKindOfThing extends Thing implements Sortable { ... } I would imagine that with Ada's generics, having many classes that are of type Sortable would be useful. (I am assuming Ada has constrained genericity.) I could then implement some sort of generic sorted collection of objects of type Sortable. Any advice would be greatly appreciated. Stephen Griese sgriese@nni.com