Lecture 16
24
JFile (easy part)
•private fields for
–String name Date createDate
–String owner Date modDate
•getters and setters as appropriate
•abstract getSize method since each child must provide its own implementation:
–number of JFiles in a Directory
–number of characters in a TextFile
•main for unit testing
–1/4 of the source code
–tedious but straightforward – read it now