
-----------------------------------
michaelp
Sat Jan 05, 2008 9:35 pm

class function access other private data member?
-----------------------------------
Well, I am making a small game to test my C++ and get better at it too.  ;D

What I want to know is: How can one class's function access another class's private data members?
Here is an example: (Not the code in my actual game, ignore any errors in the code)

class Person
{
public:
   void function(Enemy enemy1)
   {
      cout 