multiple-dispatch Questions
5
Solved
Suppose I have a bunch of fruit:
class Fruit { ... };
class Apple : public Fruit { ... };
class Orange: public Fruit { ... };
And some polymorphic functions that operate on said fruit:
void Eat...
Schreiner asked 15/6, 2010 at 22:5
2
Solved
The problem of single dispatch is mostly familiar to people engaged in coding with statically typed languages like Java and C#. The basic idea is:
While the runtime polymorphism allows us to dispa...
Centrosphere asked 2/5, 2010 at 5:20
2
Solved
I am using a class Foo that provides these methods:
String overloadedMethod(Object)
String overloadedMethod(Goo)
Since Java statically dispatches on the non-receiver argument, I cannot just pass...
Hydrophilous asked 16/12, 2008 at 9:41
7
Solved
...or are they the same thing? I notice that each has its own Wikipedia entry: Polymorphism, Multiple Dispatch, but I'm having trouble seeing how the concepts differ.
Edit: And how does Overloadin...
Tridentum asked 24/9, 2008 at 2:20
© 2022 - 2024 — McMap. All rights reserved.