$\require{cancel}$
Chapter 9, Friends
- Chapter 9, you should read.
- Friends
- We just finished protected/private/public now we learn how to violate that.
- A friend function or friend class has access to all of the members of the friended class.
- The friending class lists the functions or other classes as a friend.
- The friended class accesses the members.
- Is this a good thing?
- Look at friends.cpp