|
|
const char*
is the return type (a pointer to char which can't be modified)what() const
means that what member function doesn't modify the class and it can be used with const
objectsthrow()
because what would never throw exceptions (as myexception would be used to catch exception no of its members should throw exception or it will become very messy)