Card 64 / 76: What does it mean to “program to an interface”?
A)
Objects should be referenced by the interface they implement.
B)
Every object should implement at least one interface.
C)
Extending classes should be avoided in favor of using interfaces where possible.
D)
“Program to an interface” is another term for well-designed code.
Answer:
A) Objects should be referenced by the interface they implement.
Previous Card | ← Previous Card Button |
Next Card | → Next Card Button |
Flip Card | Space-Bar |
B, C, and D are incorrect. None of these statements describe the concept.
|