Query regarding operator overloading in this video

in this video we have overloaded [ ] to return the address of the value box .
the code is llike this-
price_menu[“dosa”]=60;

the square bracket part will return the address of the value box , after this step i am unable to understand what all is going on what is the processing , what will the peice_menu do with the address it received from the function call.

@Parmeet-Kalsi-1631789033630118 price_menu is the object (of hashmap class you created)
so price_menu["dosa’] will call overloaded function method of price_menu object.
This will return the reference of node’s price value (int) having key as “dosa”,
so now this value = 60 gets updated to 60.

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.