Junior OOP

What is explicit interface implementation?

  • Implementing an interface member explicitly so it can only be called via interface

reference, not class object.

IDriveable car = new Car();

car.Drive(); // Works

// Car c = new Car(); c.Drive(); // Won't compile

More from C# Programming Tutorial

All questions for this course