•JFile.java, line 49
•protected:
visible to children, not public
•lines 51-52 are easy: they
initialize fields
•if
(parent != null) (line 53)
• 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 67)
•Careful: parent directory
!= parent class