C# Interfaces

Difficulty: Intermediate
Duration: 1 minute and 41 seconds
Students: 271
Rating: 4.2/5

C# is a single inheritance language, meaning a class can only have one direct parent. Often single inheritance can be a limiting factor or obstacle when designing an application's class hierarchy. This lesson explores how C# interfaces mimick multiple inheritance, enabling a class to take on the properties and methods of other unrelated classes.

Intended Audience

This lesson is intended for anyone who wants to take their C# object-oriented programming to the next level..

Prerequisites

To get the most out of this lesson, you should have a basic understanding of C# classes. If you are unfamiliar with C# classes, please take our Introduction to object orientation and C# Class lesson first.

Resources

The source code used in this lesson is available at https://github.com/cloudacademy/csharp-interfaces.