Junior OOP

How do you define an interface in C#?

  • Use the interface keyword.

interface IDriveable

void Drive();

int Speed { get; set; }

More from C# Programming Tutorial

All questions for this course