Problem using Interfce
Ary Manzana
ary at esperanto.org.ar
Wed May 16 00:58:10 PDT 2012
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.
More information about the Digitalmars-d-learn
mailing list