Mail Archives: djgpp/2000/05/19/07:16:33.1
In article <8g35td$2mt$15$1 AT news DOT t-online DOT com>,
Ortwin Wagner <owsadlerhorst AT t-online DOT de> wrote:
>Dear fellows!
>
>If I call a member function by means of a pointer like
>...
>class Mammal...
>class Horse : public Mammal...
... then you should be asking this in comp.lang.c++ .
>void (Mammal::*pFunc)() const=0;
>pFunc=Mammal::Speak;
You declaring these in the class? Are you just trying to overload the
inherited Mammal functions? In which case, you don't put the Mammal::
namespace in there, as you're now in the Horse namespace.
Also you can't set anything equal to anything within the class
declaration (I think) so that's a mistake too. You need to do all of that
in the class constructor Horse().
I'm not an expert, but I think the above is all hopelessly wrong. But
you're definitely asking in the wrong newsgroup. This isn't a
compiler-specific problem, I don't think.
J-P
--
The Realtors // wish clearly // tuxedo trouble // Staying Alive // the
rotating dalmatian
- Raw text -