Unformatted text preview: • Encapsulation in the concept of putting a wrapper around a collection that you wish to protect from outside influence. Functions encapsulate the code they contain in two ways: o The variable declared within the functions are not visible from elsewhere, o and the function’s ability to change the values of variables (otherwise known as causing side effects) is restricted to its own body. Function as a Black Box • P112 Functions Scope of Variables -...
View Full Document
This note was uploaded on 03/10/2011 for the course GEOGRAPHY 101 taught by Professor Lee during the Spring '11 term at American River.
- Spring '11