Skip to main content

The contract has changed: Default Interface methods in C# 8.0

As long as I’ve been teaching object-oriented programming, I’ve drummed this phrase (or something like it) into my students’ heads, to get across how interfaces are different than classes: For classes: A subclass inherits from its superclass dynamically: As new members are added to the superclass, they are automatically available for the subclass (Based on […]