comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: About 0Y interfaces
Date: Tue, 18 Oct 2005 15:18:14 +0200
Date: 2005-10-18T15:18:14+02:00	[thread overview]
Message-ID: <d080rljfojwl$.iu8jupk4njms.dlg@40tude.net> (raw)
In-Reply-To: 4354EF40.9010906@mailinator.com

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



  reply	other threads:[~2005-10-18 13:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-18 12:49 About 0Y interfaces Alex R. Mosteo
2005-10-18 13:18 ` Dmitry A. Kazakov [this message]
2005-10-18 14:34   ` Alex R. Mosteo
2005-10-18 16:54     ` Dmitry A. Kazakov
2005-10-18 16:36 ` Pascal Obry
2005-10-18 22:01   ` Randy Brukardt
2005-10-19  9:08     ` Brian May
2005-10-19 21:51       ` Randy Brukardt
2005-10-20  6:44         ` Alex R. Mosteo
2005-10-19  9:11     ` Pascal Obry
replies disabled

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