Question: what is difference between constant function and non constant function?
Answer: 2 Answers. const says that you will not modify any of the member variables of the object (or more correctly *this ). ... const pointers and non- const pointers are incompatible. If you have a const object, you must provide a const overload.