Implementation of node class

what is this->key=key and why did we not write this->value=val but instead value=val?

you can write it like this also

but because here both name are different one is value and other is val so we can also directly assign