comp.lang.ada
 help / color / mirror / Atom feed
From: "Matthew Heaney" <mheaney@on2.com>
Subject: Re: Ada Basics
Date: Wed, 9 Oct 2002 15:09:20 -0400
Date: 2002-10-09T15:09:20-04:00	[thread overview]
Message-ID: <uq8vn1lsblt531@corp.supernews.com> (raw)
In-Reply-To: mailman.1034189822.26075.comp.lang.ada@ada.eu.org


"David C. Hoos" <david.c.hoos.sr@ada95.com> wrote in message
news:mailman.1034189822.26075.comp.lang.ada@ada.eu.org...
> Where is the procedure Increment declared?

I meant Inc.

Inc is declared in P.

Q.NT inherits P.Inc.

I should have pointed out that Q.NT, in addition to constraining its
parent's range, can also override the operations it inherits.  For example:

package P is
   type T is range 0 .. 200;
   procedure Inc (O : in out T);
end;

with P;
package Q is
   type NT is new P.T;
   procedure Inc (O : in out NT); --override P.Inc
end;







  reply	other threads:[~2002-10-09 19:09 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-09 12:53 Ada Basics prashna
2002-10-09 15:27 ` Georg Bauhaus
2002-10-09 15:50 ` Jerry Petrey
2002-10-09 17:44   ` Wes Groleau
2002-10-09 18:37 ` Matthew Heaney
2002-10-09 18:58   ` David C. Hoos
2002-10-09 19:09     ` Matthew Heaney [this message]
2002-10-09 20:05 ` Robert A Duff
2002-10-10 10:47 ` prashna
replies disabled

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