Hello everyone.
i've got a several questions in my mind,but first take a look at this code:
1 2 3 4 5 6
class my_exception : public exception {
public:
virtualconstchar* what() constthrow() {
return"my exception occured";
}
}
here's my questions:
1-)why does the what() method returns (const char*)?
2-)what does the (const) keyword after the method name does?
3-)what is the purpose of adding throw() before the opening brace?