Okay, so suppose I've got a class with a bunch of members like this:
I want a function listMembers(myobj) that will list the members in it like this.
If I made another class or passed in an existing class, it should do the same thing, regardless of the class. This seems incompatible with strict typing (how do you specify the type of input to a function like that?) but I feel confident that there's some way around it.
answered May 11 '12 at 02:18 PM