Re: virtual function question

2002-11-22 Thread Andre Poenitz
On Fri, Nov 22, 2002 at 11:47:03AM +, Angus Leeming wrote: > No, it can be /instantiated/ by the daughter class. The method is used > through the public wrapper. I'm sure I've read that this is good practice... As it clearly convolutes the code there must be a very big advantage hidden somewh

Re: virtual function question

2002-11-22 Thread Angus Leeming
On Friday 22 November 2002 11:30 am, Andre Poenitz wrote: > On Fri, Nov 22, 2002 at 11:36:43AM +, 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

Re: virtual function question

2002-11-22 Thread Andre Poenitz
On Fri, Nov 22, 2002 at 11:36:43AM +, 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() {} > virtua