[LC++]virtual protected?
Roberto Diaz
roberto at vivaldi.dhis.org
Fri Dec 21 15:54:10 UTC 2001
On Fri, Dec 21, 2001 at 05:26:05AM +0100, Carlo Wood wrote:
> On Fri, Dec 21, 2001 at 04:44:41AM +0100, Roberto Diaz wrote:
> > class base
> > {
> > protected:
> > virtual void doSomething ();
> > };
> >
> > The compiler complains..
> >
> > Some ideas please?
>
> This is the way to do it.
> It might help to tell us what the compiler complains about.
It complains about nothing.. :)) I was overiding like this:
public:
void doSomething();
instead of
protected:
void doSomething ();
Sorry for the mistake! :)
--
Saludos
Roberto Díaz <roberto at vivaldi.dhis.org>
PLEASE HELP SAVE faqs.org!
http://www.faqs.org/save_faqs-org.html
More information about the tuxCPProgramming
mailing list