< Previous | Contents | Next >
Through the magic of encapsulation, the functions you’ve seen are all totally sealed off and independent from each other. The only way to get information into them is through their parameters, and the only way to get information out of them is from their return values. Well, that’s not completely true. There is another way to share information among parts of your program—through global variables (variables that are accessible from any part of your program).