title: Slim version of Large Object/Class
body: <p>I have a product class which contains 11 public fields. </p>
  
  <pre><code>ProductId
  ShortTitle
  LongTitle
  Description
  Price
  Length
  Width
  Depth
  Material
  Img
  Colors
  Pattern
  </code></pre>
  
  <p>The number of fields may grow with attributes for more specific product tyes. The description may contain a large amount of data. </p>
  
  <p>I want to create a slim version of this product class that only contains the data needed. I'm only displaying 4 of the 12 fields when listing products on a category page. It seems like a waste to retrieve all of the data when most of it isn't being used. </p>
  
  <p>I created a parent class of ProductListing that contains the 4 fields I need for the category page</p>
  
  <pre><code>ProductId
  ShortTitle
  Price
  Img
  </code></pre>
  
  <p>Then created a class of Product that inherits from ProductListing containing all product data. It seems backwards as "ProductListing" is not a kind of "Product" but I just started reading about inheritance a few months ago so it's stil a little new to me. </p>
  
  <p>Is there a better way to get a slim object so I'm not pulling data I don't need?
  Is the solution I have in place fine how it is?</p>