Polymorphism
- showMessageDialog doesn't know which icon is
passed
- ImageIcon?
- MarsIcon?
- . . .?
- The actual type of anIcon is not Icon
- There are no objects of type Icon
- anIcon belongs to a class that implements Icon
- That class defines a getIconWidth method