I watched this video:

and tried to copy the code of classes to my eclipse.

I got this messege at the enemy class:
"class enemy has virtual method 'attack' but non-virtual destructor"

why did the guy in the video didn't get this messege? 
I fixed it with an empty virtual deconstructure, but I am still wondering...