Class Implementation

In this video, I couldn’t really understand the role of the destructor . Can you please explain?

please tell about the timestamp in the video when it happened? Also generally a destructor is used to close the variable scope of the class instance which was invoked by the constructor and is used to free up memory space

Yes,I know the basic role of a destructor in general. However,in the video it says that the destructor is called recursively. I didn’t really understand that part. It is around 2:50.

Sir has given the logic in the video itself. It is being called recursively to avoid memory leak
if(next != null) del next;
Here next is itself a Node object so it is recursive to next until null value found