Interfaces can have private methods
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser