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();
classes must follow.
methods).
interface IFlyable
void Fly();