Mid OOP

Can interfaces contain static methods?

  • Yes, starting from C# 8, interfaces can contain static methods.

interface IUtility

static void Show() => Console.WriteLine("Static method in

interface");

More from C# Programming Tutorial

All questions for this course