J
Jianli Shen
in a *.h file, there is a declaration:
const ClassName *functionName() const {return oneVar;}
I was confused by the two const there.
can anybody help explain why we need the first const.
why we need the second const here ?
Thanks
const ClassName *functionName() const {return oneVar;}
I was confused by the two const there.
can anybody help explain why we need the first const.
why we need the second const here ?
Thanks