< Previous | Contents | Next >

Using Friend Functions and Operator Overloading

Friend functions and operator overloading are two advanced concepts related to classes. Friend functions have complete access to any member of a class. Operator overloading allows you to define new meanings for built-in operators as they relate to objects of your own classes. As youll see, you can use these two concepts together.


 

Introducing the Friend Critter ProgramCreating Friend FunctionsOverloading Operators