comp.lang.ada
 help / color / mirror / Atom feed
* Question on Types
@ 2000-12-17  0:28 Stephen Griese
  2000-12-17 17:04 ` Preben Randhol
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Griese @ 2000-12-17  0:28 UTC (permalink / raw)


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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-12-17 22:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-17  0:28 Question on Types Stephen Griese
2000-12-17 17:04 ` Preben Randhol
2000-12-17 22:15   ` Ed Falis

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