Mid OOP

Can you implement an interface explicitly?

  • Yes, explicit implementation allows a class to implement interface members

separately.

class Car : IDriveable

void IDriveable.Drive() => Console.WriteLine("Explicit drive");

More from C# Programming Tutorial

All questions for this course