To get a wild (aka dangling) pointer you:
- Create an object
- Create a pointer to that object
- Delete the object
- Forget to set the pointer to null
The pointer is now classed as "wild" as it's pointing to an arbitrary piece of memory and using it in this state could cause problems with your program.