[Prev][Next][Index][Thread]

Re: Multiple Polymorphism In Java/MultiMethods - New Implementation



Like this, in fact:

	IBankAccount  account =
(IBankAccount)DynamicFactory.dynamicDispatch(new NABankAccount());
	...
	accountManager.handleTransfer(account);

Basing Java on C and leaving out the preprocessor was a baaaad call. :-)

- Rob.

Bruce Hoult wrote:
> 
> In article <80dprs0jci4bqfuqguj2737j6292go2872@4ax.com>, Jason Trenouth
> <jason@harlequin.com> wrote:
> 
> > Some Java folks know there is a better way:
> 
> Yeah, but did you see how they implement it?  Ick.


-- 
Rob Myers - http://www.robmyers.org/   H2G2 - http://www.h2g2.com/
MacOS wonderfulness for The Hitch Hiker's Guide to the Galaxy Game.
"Don't talk to sociologists. Social practice has no sociological 
content." - Art & Language.



References: