Hashmap for custom classes

not able to understand the working of hashmap for custom classes?

Hello @CODER_JATIN which part you are not able to understand?

concept ni smjh aaya ye custom class wala or ye code bhi ni chal rha

check this is the corrected code;


and in this custom we are basically learning the map with custom parameters.
if you have any confusion with syntax:
It’s a type which is used to represent the size of objects in bytes and is therefore used as the return type by the sizeof operator. It is guaranteed to be big enough to contain the size of the biggest object the host system can handle. Basically the maximum permissible size is dependent on the compiler; if the compiler is 32 bit then it is simply a typedef(i.e., alias) for unsigned int but if the compiler is 64 bit then it would be a typedef for unsigned long long . The size_t data type is never negative.

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.