Intermediate C#
Q82 / 100

What are default interface methods in C# 8?

Correct! Well done.

Incorrect.

The correct answer is B) Interface methods with implementations, allowing new members to be added to an interface without breaking existing implementors

B

Correct Answer

Interface methods with implementations, allowing new members to be added to an interface without breaking existing implementors

Explanation

interface ILogger { void Log(string msg); void LogError(string msg) => Log($"ERROR: {msg}"); } — implementors get LogError for free but can override it.

Progress
82/100