‎2007 Feb 16 7:45 AM
Hi,
I want to have an attribute R_OBJECT of a class. I don't know what class this refers until runtime and i want to set it in the constructor.
How do I define R_OBJECT and how do I assign a class to it dynamically?
Thanks,
Tristan
‎2007 Feb 16 12:03 PM
If you do not know the type during compile time just use the most general type possible.
R_OBJECT type ref to object.
Define it as a parameter in the class constructor and you can use any object when calling the constructor.
cheers
Thomas
‎2007 Feb 16 12:03 PM
If you do not know the type during compile time just use the most general type possible.
R_OBJECT type ref to object.
Define it as a parameter in the class constructor and you can use any object when calling the constructor.
cheers
Thomas