title: Implementation of method in class c++
body: <p>I'm new in oop and don't know how to specify this problem globally. I have two classes. Client</p>
  
  <pre><code>class Client
  {
  private:
      int code;
      string name;
  public:
      Client(int c, string n);
      int getCode();
      string getName();
  };
  
  Client::Client(int c, string n)
  {
      this-&gt;code = c;
      this-&gt;name = n;
  }
  
  int Client::getCode()
  {
      return this-&gt;code;
  }
  
  string Client::getName()
  {
      return this-&gt;name;
  }
  </code></pre>
  
  <p>and Account</p>
  
  <pre><code>class Account
  {
  private:
      int number;
      double balance;
      double interestRate;
      Client* owner;
    };
  </code></pre>
  
  <p>and I have method like this:</p>
  
  <pre><code>Client* Account::getOwner()
  {
      return this-&gt;something;
  }
  </code></pre>
  
  <p>Can you please tell me, how can I get client's code and name from this method?</p>