title: MVC C3 What is the proper format for inheriting a class?
body: <p>I have created the following class, it describes any type of file that may be uploaded by a user:</p>
  
  <pre><code>namespace MyModels.Models
  {
      public class File
      {
          public string FileName { get; set; }
          public string FileTypeId { get; set; }
          public string URLFileName { get; set; } //cleaned for web
          public string Dir { get; set; } //which directory is located in
          public long FileSize { get; set; } //size in bytes
          public DateTime DateAdded { get; set; } //date uploaded
          public int UploadedByUser {get; set;} //UserID of user
          public bool inCloud { get; set; } // moved to cloud
          public bool inGlacier { get; set; } // moved to glaciers
          public DateTime? DateTrashed { get; set; } //date user deleted
          public int TrashedByUser { get; set; } //UserID of user
          public List&lt;FileDescendent&gt; Descendents { get; set; } //List of copies
      }
  }
  </code></pre>
  
  <p>I then want to create a class for just image files. I want this class to have the file properties as well. Do I do this?</p>
  
  <pre><code>namespace MyModels.Models
  {
      public class Image : File
      {
          public int OrigHeight { get; set; }
          public int OrigWidth { get; set; }
      }
  }
  </code></pre>
  
  <p>Or this?</p>
  
  <pre><code>namespace MyModels.Models
  {
      public class Image
      {
          public int OrigHeight { get; set; }
          public int OrigWidth { get; set; }
          public File File { get; set; }
      }
  }
  </code></pre>
  
  <p>What is the difference please?</p>
  
  <p>Thanks!</p>