Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • A and B have the same type, so similar functions names in other classes are irrelevant. It's an obvious limitation of static typing: it doesn't catch errors where you pass the wrong instance of the right type! I agree with the rest, though, testing and peer review "should" catch this error. And also have a chance of catching wide classes of other errors. Commented Sep 17, 2012 at 17:03
  • @SteveJessop: Yea, I see your point. I misunderstood the OP. Good point. Commented Sep 18, 2012 at 18:13