Bird
0
0

Which statement about interfaces in C# is true?

easy🧠 Conceptual Q2 of 15
C Sharp (C#) - Interfaces

Which statement about interfaces in C# is true?

AInterfaces can inherit from classes
BInterfaces can be instantiated directly
CInterfaces can contain method implementations
DInterfaces define method signatures without bodies
Step-by-Step Solution
Solution:
  1. Step 1: Recall interface structure

    Interfaces only declare method signatures without providing method bodies.
  2. Step 2: Identify the role of the interface

    Interfaces cannot be instantiated or inherit from classes; they only define method signatures.
  3. Final Answer:

    Interfaces define method signatures without bodies -> Option D
  4. Quick Check:

    Interface methods = Signatures only [OK]
Quick Trick: Interfaces declare methods, no code inside [OK]
Common Mistakes:
MISTAKES
  • Trying to create interface objects
  • Expecting method code in interfaces
  • Confusing inheritance rules

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More C Sharp (C#) Quizzes