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

List:       kde-core-devel
Subject:    Re: KParts API: thinking about the future (patch)
From:       Carsten Pfeiffer <carpdjih () cetus ! zrz ! tu-berlin ! de>
Date:       2002-03-07 2:17:06
[Download RAW message or body]

On Thursday 07 March 2002 00:43, Martijn Klingens wrote:

Hi,

> Yes. Private in this case might lock you down a bit too much. Still, the
> rule from that web page 'almost never make virtual methods public' seems
> very true for extensible API code.

but having the method private is actually the point of that pattern. That a 
baseclass doesn't need to rely on subclasses calling it properly. But with 
that technique, it only works for the very superclass, but none in the 
middle. So there's not much, you gain.

Cheers
Carsten Pfeiffer
[prev in list] [next in list] [prev in thread] [next in thread] 

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