First page Back Continue Last page Graphics
Classes cont.
Friend functions
- allow access to private data from other functions that you trust.
The big example Prata used was overloading the << operator. An example of overloading and an example of the use of friends.
Don't confuse the vector class in the Prata text (pg 467) with the <vector> container in the STL!