A
arun
Hello team,
C++ allows declarations of the fillowing form inside a class, which is
very confusing
void foo();
void foo() const;
My question is when will the second foo() be called as against first
foo()
Similarly
int bar();
const int bar();
Which function will be executed as a result of a call to bar() and
under what circumstances.
Thanks.
C++ allows declarations of the fillowing form inside a class, which is
very confusing
void foo();
void foo() const;
My question is when will the second foo() be called as against first
foo()
Similarly
int bar();
const int bar();
Which function will be executed as a result of a call to bar() and
under what circumstances.
Thanks.