by Rusky · 15y ago · 0 comments
Rather than inheriting from some base class, you just make sure your class can do certain operations and then other stuff works on that- it's good way to decouple algorithms, containers, etc. from the types they work with.
It would be nice to be able to specify tests that every implementor of the Heap interface must pass?