Menu
I want to access a property of an object without actually knowing what properties are in this object.
So for example i have the following object:
[CODE]
function thisObject(int age, String name)
{
this.age = age;
this.name = name;
}
var newObj = new thisObject(10,”myName”);
So now i want to call the “name” property, but without actually using the “newObject.name”.
Is there a way to do this? any help would be appreciated.
Thanks in advance.