At timestamp 9:34

at this time there was an error which as rwsolved after making function const what was the error

if the object is const then we can’t call normal member function, cause it can change the data member so we need some sort of guarantee from the function that it will not change the data member , making your function const ensures that it won;t change the data member , and calling a normal member function from a const object will cause error

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.