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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c5ca2cbae60e9fee X-Google-Attributes: gid103376,public From: Robert A Duff Subject: Re: OO puzzle Date: 1999/12/23 Message-ID: #1/1 X-Deja-AN: 564208852 Sender: bobduff@world.std.com (Robert A Duff) References: <83qtap$pri$1@nnrp1.deja.com> <83sqht$5oi$1@nnrp1.deja.com> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 1999-12-23T00:00:00+00:00 List-Id: Ehud Lamm writes: > But than you lose the ability to define the abstract interface (for > Motor_Vehicle) and know that it is supported by all descendants. But it seems to me that you are *not* requiring the descendants to support that interface. You are trying to let the descendants support a different operation, also called "register", but with a different contract (ie, trucks can't register airplane drivers, although the parent type implied they could -- or whatever the example was). It's an interesting language design issue, anyway. - Bob