Steven Giesel 10/25/2023

Interfaces can have private methods

Read Original

This article details the C# 8 feature 'Default interface methods,' which allows defining method implementations within interfaces. It covers the syntax, the rationale (avoiding breaking changes), and the ability to include private helper methods. The author also expresses a personal opinion on the feature while providing practical code examples.

Interfaces can have private methods

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser