- In this module, you learn how to design an interface with properties in C#, develop a class that implements the interface, and formulate property definitions within the interface.
By the end of this training, you'll be able to:
Design an interface property.
Design an interface method.
Implements an interface in a class.
Understand the value of interfaces.
- Discover how default implementations in interfaces enable you to add new methods directly into an interface and provide a default implementation.
By the end of this training, you'll be able to:
Define and implement basic interfaces in C#.
Implement default methods in interfaces.
Use interfaces as method parameters to promote loose coupling.
Implement and use common system-defined interfaces like IEnumerable, IDisposable, and IComparable.
Override default implementations in specific classes.
- In this module, you explore advanced concepts of interfaces in C#. You learn how to implement explicit interface members, combine multiple interfaces, and reduce code dependencies using interfaces.
By the end of this training, you'll be able to:
Apply SOLID design principles.
Implement explicit interface members in a class.
Use and combine multiple interfaces.
Reduce code dependencies with interfaces.
Build resilient code with interfaces.
Google, IBM & Microsoft Certificates — All in One Plan
Get 20% off all career paths from fullstack to AI
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
Syllabus
- Discover interfaces
- Introduction
- Understand interfaces
- Implement interface properties
- Create interface methods
- Understand the value of interfaces
- Exercise: Implement interfaces in project
- Module assessment
- Summary
- Apply interfaces in code
- Introduction
- Explore default interface implementation
- Define a method with an interface as a parameter
- Learn to use system defined interfaces
- Exercise: Create flexible code with interfaces
- Module assessment
- Summary
- Design resilient code with interfaces
- Introduction
- Examine interface designs
- Implement explicit interface members in a class
- Use and combine multiple interfaces
- Understand tightly coupled code
- Refactor using interfaces
- Exercise: Decouple code with interfaces
- Module assessment
- Summary