Card 61 / 76: What is the correct method signature for class Z if it uses interface A?
A)
public class Z inherits A{ … }
B)
public class Z extends A{ … }
C)
public class Z implements A{ … }
D)
public class Z uses A{ … }
Answer:
C) public class Z implements A{ … }
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
A, B, and D are incorrect.
A and D are incorrect because inherits and uses are made-up terms.
B is incorrect because extends is used for classes, not interfaces.
|