3 ms·
I'm disappointed that > The method that gets invoked depends on the “actual” instance type, not the “declared” instance type. doesn't apply more broadly. If
by mrkeen 3y ago
I'm disappointed that
> The method that gets invoked depends on the “actual” instance type, not the “declared” instance type.
doesn't apply more broadly. If you have a call(fruit) method and a call(apple) method, when you supply a fruit, it will resolve to call(fruit), even if the fruit instance is actually an apple.
- ackfoobar 3y agoSome languages do it. https://en.wikipedia.org/wiki/Multiple_dispatch https://en.wikipedia.org/wiki/Multiple_dispatch
- deleted 3y ago[deleted]