What are Default Interface Methods in C# 8.0?by@miguel-bernard

What are Default Interface Methods in C# 8.0?

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

Microsoft introduced default interface methods in C# 8.0 in September. The new feature will enable many scenarios that were previously difficult or impossible to achieve. They mostly behave like virtual methods in an abstract class. This makes all the difference when it comes to code reuse, a.k.a. the Don't Repeat Yourself (DRY) principle. The approach is also very non-intrusive and won't conflict with existing code, which means it will be easy to slowly adopt it.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - What are Default Interface Methods in C# 8.0?
Miguel Bernard HackerNoon profile picture

@miguel-bernard

Miguel Bernard

Miguel is passionate about teaching, developers' communities and everything related to .Net.


Receive Stories from @miguel-bernard

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!