#include<iostream>
using namespace std;
class x{
public:
x() {}
int func() const{
cout<<"it is const function\n";
}
int func() {
cout<<"it is simple functin\n";
}
};
int main()
{
x a;
a.func();
return 0;
}
why cann't it take const function?
explain it
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.