Design pattern for correctly overwriting abstract methods (interface methods)

An aside, after working with a lot of code that onces used this kind of NotImplementedException,
we concluded it was an antipattern.
and replaced it with declaring the functin in the

function cache end

form.

  • Plus a docstring saying what the espected signature was.
  • Plus a test-suite function which accepts an implementation of the interface in the docstring and tests that it follows the interface.

Its great.
Strong recommend,.

12 Likes