paper and rock have to be declared as type Thing* in order for the problem/difference to show up in C++ (or Java). Overloading is resolved at compile time, so if you switch the compile-time types, you switch which function gets called.
<code>
<blockcode>
<foo>
[foo]
More information about formatting options
Recent comments
11 hours 45 min ago
16 hours 49 min ago
17 hours 18 min ago
1 day 9 hours ago
1 day 16 hours ago
1 week 6 days ago
3 weeks 10 hours ago
3 weeks 1 day ago
3 weeks 3 days ago
3 weeks 4 days ago