Can you give me an example of how to properly invoke a constructor from another file?
Cat *pCat = new Cat();
I do not have a problem with any of the other classes I have and I handled them the same way so i dont really see what the problem is.
static Ghost ghost1;
You do NOT directly invoke the constructor. Ever.
unless you use placement new
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16