22
For a class A, an integer conversion operator would look something like;
operator int() //Here we don't specify any return type
{
return intValue;
}
How is the above function able to return a value when its return value type appears not to be specified? It doesn't appear to return "anything", but I know it's not void.
How is this meaningful when a return type is not specified?