Lecture 16
31
JFile constructor
•JFile.java, line 50
•protected: visible to children, not public
•lines 52-53 are easy: they initialize fields
•if (parent != null) (line 54)
•    parent.addJFile( name, this );
•if this JFile has a parent (not top of JFile tree)  send message to parent to add this JFile          (Directory or TextFile) to its TreeMap, with               name as key. (Directory.java line 69)
•Careful: parent directory != parent class