On 5/16/12 9:24 AM, Stephen Jones wrote:
Ary: I seem to remember playing around with a Simpsons extending program in Java that did this; you could throw all the different Simpsons into a single Array because they extended "Simpson", and you could walk through the array and each would call their own name. I kind of purposely left the language vague in case I was mistaken.
But in Java you'd also need to cast the Simpson to a specific class if it contains the fields you are interested it.