How do you in C++ of returning a default type for a class : <p>I have a class which contains a variable (apple). How can i configure the class so by default the return type if (const char *), any suggestions please?</p>

<pre><code>class myClass {
   public char *apple;
}

int main()
{
   myClass c;
   printf("%s\r\n",c);
}
</code></pre>
