Why const function

Why is it necessary to make the operator == function as const while overloading

hi @himanshugupta8 const keyword is used so that the function may not change any of the values passed to it.

1 Like