const means that it cannot be overloaded..i think due to that this is happening.
On Tue, Jul 12, 2011 at 9:26 PM, segfault <pawan1991ya...@gmail.com> wrote: > #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 algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- With regards Dheeraj Tyagi 8197218001 -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.