title: Using a class object in another class
body: <p>Node Class</p>
  
  <p>As part of the tree implementation you should implement a Node class. Each node should contain a Customer object, pointers to left and right children and (optionally) the parent.     </p>
  
  <p>So, currently I have a customer class such that: </p>
  
  <pre><code>class Customer {
  public:
      Customer(void);
      Customer(string,char,int);
  };
  </code></pre>
  
  <p>In my node class how can I create a customer object while linking the two files?  </p>
  
  <p>Do I just include the following in my node header file?  </p>
  
  <pre><code>#include "Customer.h"
  
  class Node {
  public:
  
      //Customer class
      class Customer {
      public:
          Customer(void);
          Customer(string,char,int);
      }
  
  Node(void); //default constructor
  Node(string,char,int); //Node constructor with customer details
  
  Node* left;
  Node* right;
  Node* parent;
  
  };
  </code></pre>
  
  <p>In the node.cpp file to pass in the values to the node:  </p>
  
  <pre><code>//Constructor
  Node::Node(string x, char y, int z) {
  
          lastName = x;       
          firstInitial = y;   
          balance = z;        
  }
  </code></pre>
  
  <p>How do I pass the values of the customer object to the node construct?</p>