C# 8 Interfaces
This course will teach you how C# interfaces can help add flexibility to your applications.
What you'll learn
Code that is easy to maintain, extend, and test is key to applications that can move quickly to meet your users’ needs. In this course, C# Interfaces, you’ll learn to use interfaces to add flexibility to your code. First, you’ll explore the mechanics (“What are interfaces?”) and why you want to use them. Next, you’ll discover how to create your own interfaces to make it easy to change or swap out functionality. Finally, you’ll learn about default member implementation and how to avoid some common stumbling blocks. When you’re finished with this course, you’ll have the skills and knowledge of C# interfaces needed to write application code that is easy to maintain, extend, and test.
Table of contents
- Overview 1m
- Changing Interfaces 2m
- Default Implementation 2m
- Demo: Adding Default Implementation 8m
- Calling Default Implemented Members 2m
- Demo: Calling Default Implemented Members 3m
- Beware of Unintended Behavior 2m
- Demo: Making Bad Assumptions 3m
- Interface Inheritance 3m
- Additional Features 4m
- Interfaces vs. Abstract Classes 4m
- Summary 2m