Lecture 7
4
getters and setters
•Hide implementation details from TextFile  clients
•setContents(String contents) (line 51)
–sets value of field and …
–changes modification date
–practice using this
•int getSize() (line 97)
–looks like a getter but …
–there is no size field - code delegates the job