Category "destructor"

Where to close a member variable (e.g.:socket) in a java class?

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

Destructors but for functions

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