Hacker News new | ask | show | jobs
by dragonwriter 3449 days ago
With just interfaces you can produce a variation of the pattern you describe by using an interface that specifies the hooks, having the concrete types implement the hook interface, and using a proxy that implements the shared behavior by consuming the hook interface.