const char* virtual toString() const

Hi guys,
why cannot I declare an instance method like this:
const char* virtual toString() const
the meaning would be an overridible function that returns a C string... e.g.
const char* A::toString() const{ return "that's me".c_str(); }

Byes
- Atari
Topic archived. No new replies allowed.