How class has been defined using templates

i am unable to understand what node* next means,instead it should be node * next.

It is just the way you do when you are making a templated linked list. It means that the linked list can support any data type. There is nothing to understand in it.

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.