title: Creating a Class of Objects within an Object
body: <p>I have what might seem like a simple question, but for some reason I am having a problem getting my brain around the concept of having a object with multiple object with in it. For example lets say we have a object with a header and a footer with multiple objects in between.</p>
  
  <p>Like a report, the header would have the name and address. The footer would have a total of the item that where bought. In between would be the line items with the part number, description and a price.</p>
  
  <p>I guess the I can have a object with an header, footer and an array of line item object, all with their own properties. I am using a report as the example, because it’s the only concept that I can think of that will get close to explaining my question. </p>
  
  <p>Can someone please send me a link to or explain on how to create this type of object(s). </p>
  
  <p>I am using VS 2010 and VB.net and I can translate from C# to VB.</p>
  
  <pre><code>    Report Object
         Header Object
           Property Name
           Property Date
         End
         LineItem() Array Object
           Property Part Number
           Property Part Description
           Property Number of Items
           Property Per Item Price
           Property Total price
         End 
         Footer Object
           Property Total Items count
           Property Total Price
         End
       End
  </code></pre>