Few doubts regarding this video

First is while overloading the operator why we have to make the function const ? and can you please explain me how we made our own hash funtion ?

Hello @sukritbansal01

we make any function constant when we dont want them to make any changes on the objects/data they are dealing with.

here hash function and then other != is dealing with objects and becuase we dont want these functions to make any changes on object we make them const

the operator that we overload () will take student object and then calculate sum of length of first and last name .and then use it as key/hash value.

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.