Lecture 18
6
Polymorphism
 poly (many) + morph (shape)
•ShellCommandTable.java
–maintains a list of (abstract) ShellCommand objects
–client retrieves them and sends them messages
–without knowing what kinds of JFiles they are!
•Client refers to objects of type Parent that are really instances of a Child extending Parent
•Powerful design tool -  ignorance is bliss
–
•