comp.lang.ada
 help / color / mirror / Atom feed
From: Robert A Duff <bobduff@shell01.TheWorld.com>
Subject: Re: Interface specification in Ada
Date: Wed, 11 Jun 2008 12:34:11 -0400
Date: 2008-06-11T12:34:11-04:00	[thread overview]
Message-ID: <wccr6b4aq2k.fsf@shell01.TheWorld.com> (raw)
In-Reply-To: 8bf0fc5b-3eac-4898-835c-93d40aca25e2@z66g2000hsc.googlegroups.com

christoph.grein@eurocopter.com writes:

> You missed the "this" parameter, which is implicit in Java, but
> explicit in Ada:
>
> package Bicycle is
> � type Object is interface;
>
> � procedure changeCadence (Ob: in out Object; newValue : in Integer)
> is abstract;

Also, it's a good idea to use the "overriding" keyword.

- Bob



  parent reply	other threads:[~2008-06-11 16:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-11 12:46 Interface specification in Ada Dennis Hoppe
2008-06-11 13:04 ` christoph.grein
2008-06-11 15:02   ` Georg Bauhaus
2008-06-11 16:34   ` Robert A Duff [this message]
2008-06-11 21:23   ` Dennis Hoppe
2008-06-12  8:37     ` Georg Bauhaus
replies disabled

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