<pa********@hotmail.comwrote in message
news:f0**********************************@i18g2000 prn.googlegroups.com...
>I understand that a const qualifier after the function declaration
makes it a const function for the class.
Like
int func1 const ( double, long int );
Actualy, it's like this:
int func1 ( double, long int ) const;
Now what is the purpose of the following
const int func1 const ( double, long int );
const int func1 ( double, long int ) const;
would be a constant function that returns a constant integer. Really not
making much sense, usually a const returned value is a reference or pointer
such as:
const int & func1 ( double, long int ) const;
or
const int* func1 ( double, long int ) const;
What is the purpose of the const before the declaration