- Designing and implementing an interface
- Implementing multiple interfaces
- Using .NET-defined interfaces
- Understanding how generics improve program reliability
- Exploring .NET's generic data collection classes
Skill Level Intermediate
- [Voiceover] Hi I'm Joe Marini and welcome to C# Interfaces and Generics. In this course, we're going to look at these two very useful features of C#. Interfaces provide a way for developers to specify a set of related behaviors that can be used by different classes. In addition, any given class can use more than one kind of interface depending on the behaviors it wants to be able to perform. Since C# does not support multiple inheritance interfaces can help overcome this limitation. The second feature, generics, gives you a way of defining type safe data structures in your application without committing to a specific data type ahead of time.
This helps prevent many kinds of bugs and improves the performance of your application when working with various kinds of collections of data. Now all of this may sound a little complex at first, but once you see it in action you'll wonder how you ever got along without these features. Knowing how to work with these features of C# will make your programming projects easier to build and with a lot fewer bugs. Let's get started learning about C# Interface and Generics.