Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Microsoft

Implement Interfaces in C#

Microsoft via Microsoft Learn

Overview

  • Module 1: This module introduces the basics of interfaces in C# and how to use them.

    In this module, you will:

    • Create and implement interfaces
    • Understand why interfaces are useful in object-oriented programming
    • Learn to use system defined interfaces
  • Module 2: In this module, you'll learn to extend classes with multiple interfaces, use interfaces as a type, and understand interface design practices.

    In this module, you will:

    • Understand the difference between abstract classes and interfaces
    • Learn how to combine multiple interfaces
    • Understand how polymorphism and interfaces
    • Use interfaces as a type
  • Module 3: In this module, you'll learn about tightly coupled code and how to avoid it. You'll also learn how interfaces can improve your project by reducing code dependencies and standardizing your code.

    In this module, you will:

    • Understand how interfaces reduce code dependencies
    • Identify how interfaces standardize code
    • Understand tightly coupled code
    • Learn to plan code design for changes to project scope
  • Module 4: This module will guide you through the steps required to develop your own Langston's Ant project. Your code will use interfaces to represent the functions the ants can perform.

    In this module, you'll practice how to:

    • Create and implement interfaces
    • Use interfaces as a type

Syllabus

  • Module 1: Module 1: Introduce interfaces
    • Introduction
    • What is an interface
    • Exercise - Create an interface
    • Exercise - Extend classes with an interface
    • Why use interfaces
    • Exercise - Use system defined interfaces
    • Complete the challenge
    • Review the solution
    • Knowledge check
    • Summary
  • Module 2: Module 2: Implement interfaces
    • Introduction
    • Examine interfaces and abstract classes
    • When to use interfaces
    • Exercise - Implement multiple interfaces
    • Exercise - Use interfaces as a type
    • Complete the challenge to get craftable items
    • Review the solution
    • Knowledge check
    • Summary
  • Module 3: Module 3: Design code with interfaces
    • Introduction
    • Understand tightly coupled code
    • Exercise - Reduce dependencies with interfaces
    • Examine interfaces designs
    • Exercise - Create a design standard
    • Learn to plan for interfaces
    • Complete the challenge
    • Review the solution
    • Knowledge check
    • Summary
  • Module 4: Module 4: Guided project langstons ant
    • Introduction
    • Prepare
    • Exercise - Create an interface
    • Exercise - Use the interface as a type
    • Knowledge check
    • Summary

Reviews

Start your review of Implement Interfaces in C#

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.