Skip to content
Sharp

Object-oriented programming · interview question

Which statement about interfaces in modern C# (C# 8 and later) is true?

Multiple choiceEasy
Choose one answer
Answer and explanation

Correct answer

A. An interface can provide a default implementation for a method.

Why

Since C# 8, interfaces can include default interface methods, so a member can be added to an interface without breaking existing implementers. They still can't have instance fields, and a class still has only one base class.

Test yourself on Object-oriented programming

A free test with instant, explained results. No account needed.

Start free test
All Object-oriented programming questions →