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-Thread: 103376,9fc9fc4716c48fb2 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newspeer.monmouth.com!newsswitch.lcs.mit.edu!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Interface specification in Ada Date: Wed, 11 Jun 2008 12:34:11 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <8bf0fc5b-3eac-4898-835c-93d40aca25e2@z66g2000hsc.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: pcls6.std.com 1213202051 14682 192.74.137.71 (11 Jun 2008 16:34:11 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 11 Jun 2008 16:34:11 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:h5QNbsVXQC8JbTC+TAY9VkbLKCc= Xref: g2news1.google.com comp.lang.ada:655 Date: 2008-06-11T12:34:11-04:00 List-Id: 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