previous
|
start
|
next
Adapters
Cable adapter: adapts plug to foreign wall outlet
OO Programming; Want to adapt class to foreign interface type
Example: Add
CarIcon
to container
Problem: Containers take components, not icons
Solution: Create an adapter that adapts
Icon
to
Component
Ch10/adapter/IconAdapter.java
Ch10/adapter/IconAdapterTester.java
previous
|
start
|
next