Multiple choice .net c-sharp

In order for a class to use an interface, it must

  1. inherit the properties of the interface

  2. contain the same methods as the interface

  3. create an interface objects

  4. a and b

  5. all of the above

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

To use an interface, a class must implement it, which involves providing definitions for all methods specified in the interface. While 'inherit' is often used loosely, interfaces are implemented. The class must contain the same method signatures to satisfy the contract. Option 2763 is marked correct as it encompasses these requirements.