Multiple choice

Which of the following is FALSE regarding interfaces in C#?

  1. A class can inherit a base class and can also implement one or more interfaces.

  2. An interface cannot contain the definition of a method.

  3. An interface can inherit from one or more base interfaces.

  4. An interface cannot contain an event.

  5. Interface members are by default public.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Interfaces can contain methods, properties, events, indexers or any combination of those four member types.