title: Overlapping implementation using composition
body: <p>I would like to implement overlapping. Substitute for overlapping is composition?
  <img src="https://i.stack.imgur.com/p7YmE.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/gAHF2.png" alt="enter image description here"></p>
  
  <p>I do this project in asp.net mvc using Entity Framwework(Code First). Any ideas how to do it?</p>
  
  <p>Person.cs</p>
  
  <pre><code> public abstract class Person
      {
          public int PersonId { get; set; }
          public string FirstName { get; set; }
  
          public string LastName { get; set; }
  
          public string Email { get; set; }
  
          public virtual ICollection&lt;User&gt; users { get; set; }
  
      }
  </code></pre>
  
  <p>User.cs</p>
  
  <pre><code> public class User : Person
      {
          private Boolean Pelnoletni{get; set;}
          private string Adres{get; set;}
          private long Telefon_kontaktowy{get; set;}
  
          public virtual ICollection&lt;Order&gt; orders {get; set;}
          public virtual ICollection&lt;Opinion&gt; opinions { get; set; }
  
      }
  </code></pre>
  
  <p>Seller.cs</p>
  
  <pre><code>   public class User : Person
      {
          private Boolean Adult{get; set;}
          private string Adress{get; set;}
          private long Phone_number{get; set;}
  
          public virtual ICollection&lt;Order&gt; orders {get; set;}
          public virtual ICollection&lt;Opinion&gt; opinions { get; set; }
  
      }
  </code></pre>