In my case, the member variable is socket. But this question can be general for any member variable which needs some operations before the object is deleted. I
New to c++ and possibly a really stupid question, but is there something like a destructor but for functions? I making a sort of game and as you can see that th