Mid OOP

What are interfaces?

  • Interfaces define a contract of methods, properties, or events that implementing

classes must follow.

  • Interfaces provide full abstraction without any implementation (C# 8+ allows default

methods).

interface IFlyable

void Fly();

More from C# Programming Tutorial

All questions for this course