On Fri, Nov 22, 2002 at 11:36:43AM +0000, Angus Leeming wrote:
> I think I've read (I can't find where I've read it) that Bar is "better" than 
> Foo, but I don't know why and it's bugging me ;-)
> 
> Could someone explain?
> Angus
> 
> class Foo {
> public:
>       virtual ~Foo() {}
>       virtual void foo() = 0;
> };
> 
> class Bar {
> public:
>       virtual ~Bar() {}
>       void bar() { bar_private(); }
> private:
>       virtual void bar_private() = 0;
> }

I doubt that. A private virtual function is pretty close to being useless.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to