This needs a different approach

Saaa empty at needmail.com
Mon Apr 28 13:33:21 PDT 2008


> Say you have a Fruit interface with the function eat();
> You could then have an Apple, Plum, Pear class that implements Fruit. If
> you have data as one of these types maybe in a variable of type Fruit you
> could then just call data.eat(). Though you don't seem to have it set up
> in this way, and my not be the needed approach for what you are trying to
> do. I'm tired so I'm not going in as much depth as I should.

Thanks, I'll look into it.
 




More information about the Digitalmars-d-learn mailing list