Overriding private virtual functions
Vladimir Prus
ghost at cs.msu.su
Mon Nov 24 11:17:40 UTC 2008
On Monday 24 November 2008 09:26:49 Niko Sams wrote:
> > Can you clarify? Overriding a private function is allowed I think, try compiling
> > this program:
> This is the list of methods a skeleton should be generated. You can
> add as many methods as you like later on. The user shouldn't have the
> possibility to create easily such "questionable design" (and expect
> that it is a protected function)
Bad design already happened when a method in a base class was marked
private and virtual. And if it already virtual, then it's presumably
meant to be overriden, however bad design that be.
Anyway, I don't mean to push this point further -- it does not affect
me personally.
- Volodya
More information about the KDevelop-devel
mailing list