says that I have a method that has two parameters. I execute them as:
if(aObj instance of Marble) {
if(bObj instance of Bomb) {
this.resolve((Marble)aObj,(Bomb)bObj);
}
}
since you can see it is not a very beautiful solution. I plan to implement using dual dispatch, but with two parameters that both require dual dispatch, I'm afraid I'm a bit of a dead end. any ideas please.
im implementing in java btw.
source
share