When is overloading of == used

I am not getting that when we have called this operator overloading like the hashfunction here is not checking if that is our student or not,by checking the roll no can you just make it clear to me

Hello
@sukritbansal01 == is used for checking whether the two operands are same or not.
any value we have and if it matches with the same in the record then we can use ==.
Happy Learning!!

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.