DEV Community

Discussion on: Default Interface Methods in C#: Love 'em or Hate 'em?

Collapse
 
tomtheisen profile image
tomtheisen

This means interfaces are no longer just a contract with declarations of methods, properties, indexers and events, but can now have private members, static members, protected members, virtual members and default implementations for these members.

As far as I've been able to tell, interfaces in C#8 can do none of:

  1. private members
  2. static members
  3. protected members

And all interface members have always been virtual, in the sense that they're virtually dispatched.

As you can guess, I don't really understand the panic over this feature. I think it's great.