Re: Abstraction encapsulation & interfaces

From: Alwyn (
Date: 10/15/04

Date: Fri, 15 Oct 2004 11:50:18 +0100

In article <>, Val \
<> wrote:
> | How exactly does that differ from what I said?
> Well, you asked this question:
> "| Doesn't abstracting an implementation mean the same as
> | providing an interface for it?"
> AFAIUI, you only have an interface, if you have encapsulation,
> and you only have encapsulation, if you have private or possibly
> protected data

I think we are splitting hairs now.

> - Otherwise you just have an public 'C' structure
> that offers nothing of real value.

You can implement abstract data types in C too, arguably just as well
as in C++. Opaque types are also possible, where the implementation
data are completely hidden; you might even find the following page