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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,20144c9b38aef82d X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!newsfeed.freenet.de!news.osn.de!diablo1-ffm.news.osn.de!news.belwue.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: About 0Y interfaces Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.14.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <4354EF40.9010906@mailinator.com> Date: Tue, 18 Oct 2005 15:18:14 +0200 Message-ID: NNTP-Posting-Date: 18 Oct 2005 15:18:14 MEST NNTP-Posting-Host: a34ee94c.newsread2.arcor-online.net X-Trace: DXC=OZH_8ZCdb5_\6[GEd:nl>[Q5U85hF6f;TjW\KbG]kaMXQ>n?D9BSA]\jgG7=ISPA6Q[6LHn;2LCV^7enW;^6ZC`T<=9bOTW=MN^ X-Complaints-To: abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:5770 Date: 2005-10-18T15:18:14+02:00 List-Id: On Tue, 18 Oct 2005 14:49:04 +0200, Alex R. Mosteo wrote: > I hope someone can clarify some aspects of interfaces to me. I've read > the description in several places but there are some things I'm not sure > about. > > Firstly, interfaces are purely abstract, right? There's no way to > provide a default/partial implementation except creating an object type > which implements that interface. > > Secondly, we can create an object type which implements two or more > interfaces. But I guess there's no multiple inheritance from classes, so > you couldn't use two implementations of two different interfaces > directly when creating a new type. Is this right? You'd need to use, for > example, member objects and use proxy calls. I think the answer depends on what is meant under "implementation": 1. Implementation of the values (data implementation) 2. Implementation of the primitive operations (type interface implementation) 3. Implementation of class-wide operations (class interface implementation) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de