We have been using the interfaces for years and we know that interfaces are just contracts and class that inherits them must implement all methods of interface.
Suppose this Interface is being implemented by multiple classes and now you want to add some more methods in that interface.
If we talk about the time before C# 8.0 then you can not do this , because it will break all classes implementing that interface and you must implement that method.
But with C# 8.0 now we can add default implementation of methods and it will not break all those classes that are implementing the interface.
So what are the benefits of using it
Without breaking default implementation we can add new methods now in interface , but we can do this through extension method as well ( creating an extension method for your interface).
Class implementing interface is not aware about default implementation of method.
Most importantly default interface methods can avoid diamond problem
Thank you for reading my Newsletter , see you in next week :)