How to create class objects dynamically?

Viewed 72597

Let's say I have a class box, and a user can create boxes. How to do it? I understand I create objects by className objectName(args); but how to do it dynamically, depending on the user input?

3 Answers
Related