Multiple choice technology programming languages

If a class is using an interface....

  1. it must inherit the properties of the interface

  2. contain the same methods as the interface

  3. create an interface object

  4. all of the above

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

When a class implements an interface, it must inherit all properties the interface defines, contain implementations of all the interface's methods (unless the class is abstract), and you can create objects of the class that implements the interface (though not directly instantiate the interface itself).