- 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.
Gain a Splash of New Skills - Coursera+ Annual Just ₹7,999
Free courses from frontend to fullstack and AI
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
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