Why a constant pointer of type character as a function?
<p>I'm learning C++ and I've came across this and I don't understand this small thing. Why is the GetName() function a pointer of type character and why is it constant?</p>

<pre><code>class Derived: public Base
{
public:
    Derived(int nValue)
        : Base(nValue)
    {
    }

    const char* GetName() { return "Derived"; }
    int GetValueDoubled() { return m_nValue * 2; }
};
</code></pre>
