[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: C++ interfaces
From:       Julian Rockey <linux () jrockey ! com>
Date:       2005-03-12 21:56:32
Message-ID: 200503122156.32556.linux () jrockey ! com
[Download RAW message or body]

Thanks very much. This is exactly what I was looking for - works great.
cheers
Julian

On Thursday 10 March 2005 22:23, Allan Sandfeld Jensen wrote:
> On Thursday 10 March 2005 22:56, Julian Rockey wrote:
> > Hi,
> >
> >
> > What's the best way in C++ to construct a hierarchy of interfaces with a
> > corresponding hierarchy of classes?
> >
> > Specifically, in the example below why does class B have to implement
> > methods a() and b() when they've already been implemented in class A,
> > which it inherits? If there's a better way of doing this I'd really
> > appreciate it.
> >
> > class A : public IntA
>
> I think this needs to be virtual inheritence as well, otherwise the two
> instances of IntA parents are not merged to one.
>
> `Allan
>
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic