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.

Operations• As for a data abstraction, list operations supported bysystem.– Operations called by users.• Inputs must be as received from user.– Strings for console programs.Maybe others when using GUI components.• Operation can’t return a value.(Convey information to user through UI -- via effects, not result.)• Can’t control users, so no REQUIRES allowed.• Can list things the operation CHECKS, and fails if they are not true.– Operations called by programs.• Define formats for data exchanged with users, otherprograms. Not necessary for private data.21

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

Saved successfully!

Ooh no, something went wrong!