11.07.2015 Views

CS 47/147 Advanced Object-Oriented Programming - Caltech

CS 47/147 Advanced Object-Oriented Programming - Caltech

CS 47/147 Advanced Object-Oriented Programming - Caltech

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Book Example: File System!FS<strong>Object</strong>Root1Cur≤1contentsFile*entries*DirEntry+name!Name!Dir?*parent (~children)• Two more subsets:– There is exactly one Root Dir,which never changes.– At any time, there may or maynot be a Current Dir.• Root and Cur subsets of Dir.– With exactly one and at mostone member, respectively.– Neither contains all of Dir(open arrowheads)– Root is fixed (double lines).18

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!