I just recently discovered that you can specify multiple types in a single type parameter bound (see example). Like any new tool, I\'ve been trying to explore the possibilit
Note that you do not have a real problem, as the methods you are interested in calling are already called due to dynamic binding.
Running dispatch((Soup) new AlphabetSoup());
yields:
Reciting ABCs...
a
b
c
Eating some soup...
Mmm Mmm Good!
Hence, the AlphabetSoup
method are already called due to basic polymorphic behavior.