Hacker News new | ask | show | jobs
by TheDong 4071 days ago
The problem is that you can't differentiate SingleObject from CowboyObject and ShapeObject.

They all are the same interface and can be passed into each other's methods, leading to a logical error.