title: What to write in the main function when trying to create an overloaded + operator
body: <p>I'm just going to go straight to the point. What do I need to write in the main function of my source code in order to display 2 objects added together by an overloaded function? Here is my code for a Box class</p>
  
  <pre><code>class Box
  {
  private:
  
  int area;
  
  public:
  
  // Constructor
  Box(int a)
  
  { area = a; }
  
  // Overloaded + operator function
  Box operator+(const Box &amp;lhs, const Box &amp;rhs)
  {
  Box sum = lhs;
  sum += rhs;
  return sum;
  }
  
  };
  </code></pre>
  
  <p>Here is my code for the main function</p>
  
  <pre><code>int main()
  {
  // Create box objects
  Box wood(10);
  Box steel(20);
  
  // Question: How do I finish the code by adding wood and steel objects
  // and display the sum?
  // Do I have to create another box object?
  </code></pre>
  
  <p>As you can see, I want to add the 2 box objects together but I don't know how to display the sum of the 2 box objects. How do I display them? Do I have to write a void function in the class that cout's the 2 objects together? Thank you :)</p>