Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Borland C++ 2.x ( with Turbo C ) - <b>friend object scope modifier</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 friend                  Object Scope Modifier

 friend identifier;

    A friend can be either an object or a class that, while not a member
    of another class, can access fully any private and protected members
    of that class.

   -------------------------------- Example ---------------------------------

  class birds {
     friend bees;
     int num_finches;
     int increment_num_finches(void);
  };
  class bees {
     int num_honeybees;
     int increment_num_honeybees(void);
   }


See Also: class private protected public

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson