I am going to say this, please tell me if I'm wrong or right.
- If I create an instance of a class inside a loop, once that loop is finished, the instance is deleted.
How can I create multiple instances of a class using a loop?
Can I do something like with variables, creating them on the heap?
Are the classes created on the stack in the first place?
Or somewhere else?
How do I properly create a 'global' instance of a class?
I'm really confused about this, thanks for any help.